Skip to content

Commit 53a3a2d

Browse files
committed
add testcases
1 parent cab3703 commit 53a3a2d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/day13.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,13 @@ mod tests {
5454
assert_eq!(part_one(&input), 295);
5555
assert_eq!(part_two(&input), 1068781);
5656
}
57+
58+
#[test]
59+
fn example_others() {
60+
assert_eq!(part_two("939\n17,x,13,19"), 3417);
61+
assert_eq!(part_two("939\n67,7,59,61"), 754018);
62+
assert_eq!(part_two("939\n67,x,7,59,61"), 779210);
63+
assert_eq!(part_two("939\n67,7,x,59,61"), 1261476);
64+
assert_eq!(part_two("939\n1789,37,47,1889"), 1202161486);
65+
}
5766
}

0 commit comments

Comments
 (0)