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

10 lines
178 B
Rust
Raw Normal View History

2024-09-01 10:30:47 +00:00
#[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));
}
}