git @ Cat's Eye Technologies Falderal / master tests / test-shared-body.markdown
master

Tree @master (Download .tar.gz)

test-shared-body.markdown @masterview markup · raw · history · blame

Falderal test shared test bodies

Test that tests with input sections can re-use the previous test's test body.

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

-> Tests for functionality "Silly Interpreter"

| print x
=

| read x
| print x
+ meow
= meow

+ purr
= purr

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

+ dog
+ cat
= cat
= dog