100-days-of-rust/Week-09/Day-63_The-Rabbit-Problem/day63/tests/examples.rs

15 lines
276 B
Rust

#[cfg(test)]
mod examples {
use day63::rabbit_problem;
#[test]
fn example1() {
assert_eq!(rabbit_problem(2, 4, 1000000000).unwrap().0, 32)
}
#[test]
fn example2() {
assert_eq!(rabbit_problem(2, 4, 15000000000).unwrap().0, 36)
}
}