100-days-of-rust/Week-03/Day-18_Unique-Paths/day18/tests/examples.rs

25 lines
389 B
Rust
Raw Normal View History

2024-08-12 10:03:24 +00:00
#[cfg(test)]
mod examples {
use day18::unique_paths;
#[test]
fn example1() {
assert_eq!(unique_paths(3, 7), 28);
}
#[test]
fn example2() {
assert_eq!(unique_paths(3, 2), 3);
}
#[test]
fn example3() {
assert_eq!(unique_paths(7, 3), 28);
}
#[test]
fn example4() {
assert_eq!(unique_paths(3, 3), 6);
}
}