100-days-of-rust/Week-04/Day-26_Briefcase-Lock/day26/tests/examples.rs

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);
}
}