Tree @rel_0_8 (Download .tar.gz)
- ..
- cat.py
- crlf.py
- echo.py
- fail.py
- test-crlf.expected
- test-crlf.markdown
- test-substring-error.expected
- test-substring-error.markdown
- test-utf8.expected
- test-utf8.markdown
- test1.expected
- test1.markdown
- test2.expected
- test2.markdown
- test3.expected
- test3.markdown
- test4.expected
- test4.markdown
- test5.expected
- test5.markdown
- test6.expected
- test6a.markdown
- test6b.markdown
- test7.expected
- test7a.markdown
- test7b.markdown
- test8.expected
- test8a.markdown
- test8b.markdown
- test9.expected
- test9.markdown
test5.markdown @rel_0_8 — view markup · raw · history · blame
Falderal Test 5
Tests for variable substitution, and missing EOL at end of output.
Note the use of single quotes around the %(test-text)
variable;
without these, shell chaos is likely to result.
-> Functionality "Echo" is implemented by
-> shell command "python echo.py '%(test-text)'"
-> Tests for functionality "Echo"
| hello
= hello
| hi
| hi
= hi
= hi
-> Functionality "Echo, no newline" is implemented by
-> shell command "python echo.py -n '%(test-text)'"
-> Tests for functionality "Echo, no newline"
| hello
= hello
| hi
| hi
= hi
= hi
Note that single quotes needn't be supplied around %(test-file)
or %(output-file)
.
-> Functionality "Cat, from file" is implemented by
-> shell command "python cat.py -f %(test-file)"
-> Tests for functionality "Cat, from file"
| hello
= hello
| hi
| hi
= hi
= hi
-> Functionality "Cat, to file" is implemented by
-> shell command "python cat.py -o %(output-file)"
-> Tests for functionality "Cat, to file"
| hello
= hello
| hi
| hi
= hi
= hi
-> Functionality "Cat, to and from file" is implemented by
-> shell command "python cat.py -f %(test-file) -o %(output-file)"
-> Tests for functionality "Cat, to and from file"
| hello
= hello
| hi
| hi
= hi
= hi