git @ Cat's Eye Technologies Falderal / 806311e
Add basic tests for input sections in freestyle format. Chris Pressey 2 years ago
2 changed file(s) with 35 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4141 ? rreoww
4242
4343 --------------------------------
44 Total test runs: 10, failures: 3
44 Total test runs: 13, failures: 3
4545 --------------------------------
6868 ? rreoww
6969 ???> bow
7070 ???> wow
71
72 Freestyle-format tests can also contain input sections.
73
74 -> Functionality "Silly Interpreter" is implemented by
75 -> shell command "python silly-interpreter.py %(test-body-file)"
76
77 -> Tests for functionality "Silly Interpreter"
78
79 read x
80 read y
81 print y
82 print x
83 <= meow
84 <= purr
85 => purr
86 => meow
87
88 read x
89 read y
90 print y
91 print x
92 <== meow
93 <== purr
94 ==> purr
95 ==> meow
96
97 read x
98 read y
99 print y
100 print x
101 <=== meow
102 <=== purr
103 ===> purr
104 ===> meow