100-days-of-rust/Week-07/Day-44_Maximum-Edge-Of-A-Triangle/day44/tests/examples.rs

20 lines
294 B
Rust

#[cfg(test)]
mod tests {
use day44::next_edge;
#[test]
fn example1() {
assert_eq!(next_edge(8, 10), 17);
}
#[test]
fn example2() {
assert_eq!(next_edge(5, 7), 11);
}
#[test]
fn example3() {
assert_eq!(next_edge(9, 2), 10);
}
}