100-days-of-rust/Week-06/Day-38_Electronics-Shop/day38/tests/example.rs

10 lines
178 B
Rust

#[cfg(test)]
mod example {
use day38::get_money_spent;
#[test]
fn test() {
assert_eq!(get_money_spent(&[40, 50, 60], vec![5, 8, 12], 60), Some(58));
}
}