100-days-of-rust/Week-09/Day-62_Funny-Plant/day62/tests/examples.rs

20 lines
316 B
Rust

#[cfg(test)]
mod examples {
use day62::funny_plant;
#[test]
fn example1() {
assert_eq!(funny_plant(200, 15), 5);
}
#[test]
fn example2() {
assert_eq!(funny_plant(50000, 1), 14);
}
#[test]
fn example3() {
assert_eq!(funny_plant(150000, 250), 9);
}
}