3 # a simple unit test component that takes three parameters: the test to run, the
4 # input file to give that test, and the expected correct output file from the test.
5 # the script will complain if there is an error in the test output. otherwise it
6 # says nothing, but the script's return value can also be checked.
10 answer_file="$1"; shift
12 eval "$to_run" < "$input_file" | bash "$FEISTY_MEOW_SCRIPTS/testing/verify_correct_input.sh" "$answer_file"