20 lines
294 B
Rust
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);
|
|
}
|
|
}
|