1
0
This commit is contained in:
dtb 2023-09-04 10:37:18 -04:00
parent 15ae5809f0
commit fec9b4ac53

View File

@ -4,8 +4,9 @@ set -e
i=1 i=1
while test -e "$i".test; do while test -e "$i".test; do
printf '%s: %s: Running test...\n' "$0" "$i".test
./"$i".test >"$i".result ./"$i".test >"$i".result
diff 1.expected 1.result diff 1.expected 1.result
printf 'Test %s passed.\n' "$i" printf '%s: %s: Test passed.\n' "$0" "$i".test
i="$(printf '%s + %s\n' 1 "$i" | bc)" i="$(printf '%s + %s\n' 1 "$i" | bc)"
done done