rustlings-solutions/src/about_variables.rs

21 lines
364 B
Rust
Raw Normal View History

2018-05-06 15:27:03 +00:00
#[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;
return result;
}
}
#[cfg(test)]
mod tests {
use super::about_variables::*;
#[test]
fn test_complicated () {
assert_eq!(___, guess_this());
}
}