test-todos.sh
#!/bin/bash
## Checks todos.sh against every case in todos.md.
## Run with TESTMARK_REGEN=1 to update todos.md to match what todos.sh does now; then review the change with `git diff`.
source "$(dirname "${BASH_SOURCE[0]}")/../lib/testmark.bash"
exercise_todos() {
./todos.sh /dev/stdin
}
testmarktest_rule_basic '*/input' exercise_todos
testmarktest_run todos.md
examples/test-todos.sh · 366 B · f074f81300