git @ Cat's Eye Technologies Falderal / doctests-to-unit-tests tests / test-input-sections.markdown
doctests-to-unit-tests

Tree @doctests-to-unit-tests (Download .tar.gz)

test-input-sections.markdown @doctests-to-unit-testsview markup · raw · history · blame

Falderal Test: Input sections

Test tests that have test input sections.

-> Functionality "Silly Interpreter" is implemented by
-> shell command "python silly-interpreter.py %(test-body-file)"

-> Tests for functionality "Silly Interpreter"

| print x
=

| read x
| print x
+ meow
= meow

| read x
| print x
+ purr
= purr

| read x
| print x
| read y
| print y
+ meow
+ purr
= meow
= purr

| read x
| read y
| print y
| print x
+ meow
+ purr
= purr
= meow