Add failing test.
Chris Pressey
3 years ago
11 | 11 |
cd tests
|
12 | 12 |
|
13 | 13 |
FIRST_TESTS="
|
|
14 |
test-body-text-input-text
|
14 | 15 |
test-pass-fail test-no-functionality test-ill-formed test-no-test-body
|
15 | 16 |
test-var-subst-no-eol
|
16 | 17 |
test-utf8 test-crlf
|
|
0 |
--------------------------------
|
|
1 |
Total test runs: 4, failures: 0
|
|
2 |
--------------------------------
|
|
0 |
Falderal Test: test-body-text and test-input-text
|
|
1 |
-------------------------------------------------
|
|
2 |
|
|
3 |
The test body and the test input can be passed as
|
|
4 |
strings to the shell command.
|
|
5 |
|
|
6 |
-> Functionality "Echo Body" is implemented by shell command
|
|
7 |
-> "python echo.py %(test-body-text)"
|
|
8 |
|
|
9 |
-> Tests for functionality "Echo Body"
|
|
10 |
|
|
11 |
| foo
|
|
12 |
+ bar
|
|
13 |
= foo
|
|
14 |
|
|
15 |
Single quotes in the test body text are single escaped.
|
|
16 |
|
|
17 |
| don't
|
|
18 |
+ can't
|
|
19 |
= don't
|
|
20 |
|
|
21 |
-> Functionality "Echo Input" is implemented by shell command
|
|
22 |
-> "python echo.py %(test-input-text)"
|
|
23 |
|
|
24 |
-> Tests for functionality "Echo Input"
|
|
25 |
|
|
26 |
| foo
|
|
27 |
+ bar
|
|
28 |
= bar
|
|
29 |
|
|
30 |
Single quotes in the test input text are single escaped.
|
|
31 |
|
|
32 |
| don't
|
|
33 |
+ can't
|
|
34 |
= can't
|