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

15 lines
276 B
Rust
Raw Normal View History

2024-09-26 08:52:38 +00:00
#[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)
}
}