This commit is contained in:
fuckwit 2023-12-01 07:40:05 +01:00
parent 7c6209beab
commit 8ba9b6969a
2 changed files with 4 additions and 10 deletions

View File

@ -78,16 +78,10 @@ pub fn part2(input: &str) -> impl std::fmt::Display {
#[test]
fn test_part1() {
assert_eq!(
"2",
part1("2-4,6-8\n2-3,4-5\n5-7,7-9\n2-8,3-7\n6-6,4-6\n2-6,4-8").to_string()
)
assert_eq!("todo", "todo")
}
#[test]
fn test_part2() {
assert_eq!(
"4",
part2("2-4,6-8\n2-3,4-5\n5-7,7-9\n2-8,3-7\n6-6,4-6\n2-6,4-8").to_string()
)
assert_eq!("todo", "todo")
}

View File

@ -53,7 +53,7 @@ fn test_part1() {
#[test]
fn test_part2() {
assert_eq!(
"45000",
part2("1000\n2000\n3000\n\n4000\n\n5000\n6000\n\n7000\n8000\n9000\n\n10000").to_string()
"281",
part2("two1nine\neightwothree\nabcone2threexyz\nxtwone3four\n4nineeightseven2\nzoneight234\n7pqrstsixteen").to_string()
)
}