rustfmt
This commit is contained in:
parent
5310dfd406
commit
89f2a986c0
@ -1,4 +1,4 @@
|
|||||||
fn guess_this () -> i32 {
|
fn guess_this() -> i32 {
|
||||||
let one = 5;
|
let one = 5;
|
||||||
let two = 7;
|
let two = 7;
|
||||||
let three = 3;
|
let three = 3;
|
||||||
@ -6,7 +6,7 @@ fn guess_this () -> i32 {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn simple () -> &'static str {
|
fn simple() -> &'static str {
|
||||||
let hello = "Hello World!";
|
let hello = "Hello World!";
|
||||||
return hello;
|
return hello;
|
||||||
}
|
}
|
||||||
@ -14,16 +14,16 @@ fn simple () -> &'static str {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
pub fn test_simple () {
|
pub fn test_simple() {
|
||||||
verify!("Hello World!", simple(), "Simple example");
|
verify!("Hello World!", simple(), "Simple example");
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn test_complicated () {
|
pub fn test_complicated() {
|
||||||
verify!(1, guess_this(), "Complicated example");
|
verify!(1, guess_this(), "Complicated example");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn exec () {
|
pub fn exec() {
|
||||||
tests::test_simple();
|
tests::test_simple();
|
||||||
tests::test_complicated();
|
tests::test_complicated();
|
||||||
}
|
}
|
||||||
|
@ -28,4 +28,3 @@ macro_rules! verify_easy {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
extern crate quicli;
|
extern crate quicli;
|
||||||
extern crate ansi_term;
|
extern crate ansi_term;
|
||||||
|
|
||||||
use quicli::prelude::*;
|
|
||||||
use ansi_term::Color::Yellow;
|
use ansi_term::Color::Yellow;
|
||||||
|
use quicli::prelude::*;
|
||||||
|
|
||||||
#[macro_use] mod macros;
|
#[macro_use]
|
||||||
|
mod macros;
|
||||||
mod about_variables;
|
mod about_variables;
|
||||||
|
|
||||||
#[derive(Debug, StructOpt)]
|
#[derive(Debug, StructOpt)]
|
||||||
|
Loading…
Reference in New Issue
Block a user