15 lines
276 B
Rust
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)
|
||
|
}
|
||
|
}
|