100-days-of-rust/Week-04/Day-25_Coin-Trouble/day25/tests/examples.rs

19 lines
333 B
Rust

#[cfg(test)]
mod examples {
use day25::coins_div;
#[test]
fn example1() {
assert!(coins_div(&[1, 2, 3, 2, 2, 2, 3]));
}
#[test]
fn example2() {
assert!(!coins_div(&[5, 3, 10, 1, 2]));
}
#[test]
fn example3() {
assert!(coins_div(&[2, 4, 3, 2, 4, 9, 7, 8, 6, 9]));
}
}