100-days-of-rust/Week-03/Day-16_Nim-Game/day16/tests/examples.rs

17 lines
189 B
Rust

use day16::nim_winner;
#[test]
fn example1() {
assert!(!nim_winner(4));
}
#[test]
fn example2() {
assert!(nim_winner(1));
}
#[test]
fn example3() {
assert!(nim_winner(2));
}