test.sh: iterate over all days

This commit is contained in:
Xiretza 2021-12-01 08:26:02 +01:00
parent 8e1fcf87c4
commit 4cbcb7e0c2

View file

@ -27,10 +27,10 @@ run_solution() {
shopt -s dotglob nullglob shopt -s dotglob nullglob
for day in day*; do for n in $(seq 1 25); do
input=data/$day.input input=data/day$n.input
expected=data/$day.expected expected=data/day$n.expected
for solution in "$day"/*; do for solution in "day$n"/*; do
echo -n "$solution... " echo -n "$solution... "
case "${solution##*/}" in case "${solution##*/}" in