Init testing

This commit is contained in:
Jake Howard 2017-07-12 14:40:25 +01:00
parent 529ed2b429
commit 7013a3e0a0
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 10 additions and 0 deletions

View file

@ -3,6 +3,9 @@ extern crate clap;
mod args; mod args;
#[cfg(test)]
mod tests;
fn main() { fn main() {
let matches = args::get_matches(); let matches = args::get_matches();
} }

6
src/tests/args.rs Normal file
View file

@ -0,0 +1,6 @@
use args;
#[test]
fn it_works() {
assert_eq!(4, 4);
}

1
src/tests/mod.rs Normal file
View file

@ -0,0 +1 @@
pub mod args;