diff options
| author | olivia <olivia@fastmail.com> | 2018-04-26 22:14:20 +0200 |
|---|---|---|
| committer | olivia <olivia@fastmail.com> | 2018-04-26 22:14:20 +0200 |
| commit | 71482339503933d2ac94361ef34270dfa7de35ea (patch) | |
| tree | a484f4a948b12c3ecf63409c6d18f48efb487993 /src | |
| parent | 3ffefa32e156f3b8f05df798c4a3e6bd5899f30c (diff) | |
add a sample
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1,7 +1,20 @@ +#[allow(dead_code)] +mod about_variables { + pub fn guess_this () -> i32 { + let one = 5; + let two = 7; + let three = 3; + let result = (one + two) / three; + result + } +} + #[cfg(test)] mod tests { + use super::about_variables::*; + #[test] - fn it_works() { - assert_eq!(2 + 2, 4); + fn test_complicated () { + assert_eq!(___, guess_this()); } } |
