git @ Cat's Eye Technologies Falderal / 55d3164
Add failing test for desired functionality. Cat's Eye Technologies 6 years ago
5 changed file(s) with 21 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11 *.o
22 *.hi
33 *.pyc
4 *.actual
66 *.o
77 *.hi
88 *.pyc
9 *.actual
77
88 FIRST_TESTS="
99 test1 test2 test3 test4 test5 test9 test10 test11 test-utf8 test-crlf
10 test-err-no-stderr
1011 "
1112 for TEST in ${FIRST_TESTS}; do
1213 echo ${TEST}...
1415 diff -u ${TEST}.expected ${TEST}.actual || exit 1
1516 done
1617
17 # tests for listing
18 # tests for linting
1819 LINTING_TESTS="test-no-tests"
1920 for TEST in ${LINTING_TESTS}; do
2021 echo ${TEST}...
0 --------------------------------
1 Total test runs: 1, failures: 0
2 --------------------------------
0 Falderal Test: err-no-stderr
1 ----------------------------
2
3 When running a failing test, if the implementation finished with a failing
4 exit code, but did not provide anything on `stderr`, expect the error message
5 to be on `stdout`.
6
7 -> Functionality "Error on stdout" is implemented by shell command
8 -> "python fail.py '%(test-text)' '' 1"
9
10 -> Tests for functionality "Error on stdout"
11
12 | this is the error message
13 ? this is the error message