fix test
This commit is contained in:
parent
7c6209beab
commit
8ba9b6969a
@ -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")
|
||||
}
|
||||
|
@ -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()
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user