silly test addition

This commit is contained in:
Suguivy 2022-12-09 15:00:36 +01:00
parent a93031e643
commit f46bd5dfb7
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,6 @@ fn move_tail(head: (i32, i32), tail: (i32, i32)) -> (i32, i32) {
(x,-2) => (tail.0+x, tail.1-1), (x,-2) => (tail.0+x, tail.1-1),
_ => unreachable!() _ => unreachable!()
} }
} }
#[cfg(test)] #[cfg(test)]
@ -86,6 +85,10 @@ U 20"#;
} }
#[test] #[test]
fn rope2() { fn rope2() {
assert_eq!(get_positions(INPUT, 9).len(), 1);
}
#[test]
fn rope3() {
assert_eq!(get_positions(INPUT2, 9).len(), 36); assert_eq!(get_positions(INPUT2, 9).len(), 36);
} }
} }