diff options
Diffstat (limited to 'tests/testsuite/init/simple_git/out')
-rw-r--r-- | tests/testsuite/init/simple_git/out/.gitignore | 2 | ||||
-rw-r--r-- | tests/testsuite/init/simple_git/out/Cargo.toml | 8 | ||||
-rw-r--r-- | tests/testsuite/init/simple_git/out/src/lib.rs | 14 |
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/testsuite/init/simple_git/out/.gitignore b/tests/testsuite/init/simple_git/out/.gitignore new file mode 100644 index 0000000..4fffb2f --- /dev/null +++ b/tests/testsuite/init/simple_git/out/.gitignore @@ -0,0 +1,2 @@ +/target +/Cargo.lock diff --git a/tests/testsuite/init/simple_git/out/Cargo.toml b/tests/testsuite/init/simple_git/out/Cargo.toml new file mode 100644 index 0000000..dcdb8da --- /dev/null +++ b/tests/testsuite/init/simple_git/out/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "case" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/tests/testsuite/init/simple_git/out/src/lib.rs b/tests/testsuite/init/simple_git/out/src/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/tests/testsuite/init/simple_git/out/src/lib.rs @@ -0,0 +1,14 @@ +pub fn add(left: usize, right: usize) -> usize { + left + right +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn it_works() { + let result = add(2, 2); + assert_eq!(result, 4); + } +} |