20 lines
324 B
Rust
20 lines
324 B
Rust
#[cfg(test)]
|
|
mod examples {
|
|
use day26::min_turns;
|
|
|
|
#[test]
|
|
fn example1() {
|
|
assert_eq!(min_turns("4089", "5672"), 9);
|
|
}
|
|
|
|
#[test]
|
|
fn example2() {
|
|
assert_eq!(min_turns("1111", "1100"), 2);
|
|
}
|
|
|
|
#[test]
|
|
fn example3() {
|
|
assert_eq!(min_turns("2391", "4984"), 10);
|
|
}
|
|
}
|