From 1f84b3496aa0c94c55a61729d2ae79a49dbc4fdf Mon Sep 17 00:00:00 2001 From: Burnus Date: Mon, 3 Apr 2023 17:53:42 +0200 Subject: [PATCH] Cleanup in 2019 day 25 (amended comment for the test); adjustments for 2020 in add script --- 2019/day25_cryostasis/src/lib.rs | 3 ++- add.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/2019/day25_cryostasis/src/lib.rs b/2019/day25_cryostasis/src/lib.rs index 31506cd..7d12430 100644 --- a/2019/day25_cryostasis/src/lib.rs +++ b/2019/day25_cryostasis/src/lib.rs @@ -28,7 +28,8 @@ mod tests { #[ignore = "Requires manual inputs."] fn test_challenge() { let challenge_input = read_file("tests/challenge_input"); - // Required items are Cake + Coin + Monolith + Mug. Should output 19013632 in the end. + // Required items are Cake + Coin + Monolith + Mug (shortest route: W, take cake, W, S, take monolith, N, + // W, S, E, E, E, take mug, W, W, W, N, E, E, E, S, take coin, S, W, N, N, N). Should output 19013632 in the end. assert_eq!(run(&challenge_input), Ok(())); } } diff --git a/add.sh b/add.sh index 57778ff..90c6a0b 100755 --- a/add.sh +++ b/add.sh @@ -9,6 +9,7 @@ fi cp -r ../day00/tests day${1}_${2}/ cp ../day00/src/lib.rs day${1}_${2}/src/ cd day${1}_${2} +# echo 'intcode_processor = { path = "../common/intcode_processor" }' >> Cargo.toml aocf checkout $1 aocf brief > challenge.txt aocf input > tests/challenge_input