Skip to content

Commit f3f08a1

Browse files
committed
WIP day-21 pass test_456A_code()
1 parent 0b9128b commit f3f08a1

File tree

1 file changed

+14
-14
lines changed
  • AdventOfCode/2024/day-21/src

1 file changed

+14
-14
lines changed

AdventOfCode/2024/day-21/src/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -613,20 +613,20 @@ mod tests {
613613
Ok(())
614614
}
615615

616-
//#[test]
617-
//#[allow(non_snake_case)]
618-
//fn test_456A_code() -> Result<(), String> {
619-
// /*
620-
// * 456A: <v<A>>^AA<vA<A>>^AAvAA<^A>A<vA>^A<A>A<vA>^A<A>A<v<A>A>^AAvA<^A>A
621-
// */
622-
// let conundrum: Conundrum = "456A".parse()?;
623-
//
624-
// let actual = conundrum.solve_part1();
625-
// //let expected =
626-
// assert_eq!(expected, actual);
627-
//
628-
// Ok(())
629-
//}
616+
#[test]
617+
#[allow(non_snake_case)]
618+
fn test_456A_code() -> Result<(), String> {
619+
/*
620+
* 456A: <v<A>>^AA<vA<A>>^AAvAA<^A>A<vA>^A<A>A<vA>^A<A>A<v<A>A>^AAvA<^A>A
621+
*/
622+
let conundrum: Conundrum = "456A".parse()?;
623+
624+
let actual = conundrum.solve_part1();
625+
let expected = 64 * 456;
626+
assert_eq!(expected, actual);
627+
628+
Ok(())
629+
}
630630

631631
//#[test]
632632
//#[allow(non_snake_case)]

0 commit comments

Comments
 (0)