Cleanup in 2019 day 25 (amended comment for the test); adjustments for 2020 in add script

This commit is contained in:
Burnus 2023-04-03 17:53:42 +02:00
parent 197dab78d7
commit 1f84b3496a
2 changed files with 3 additions and 1 deletions

View file

@ -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(()));
}
}

1
add.sh
View file

@ -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