git @ Cat's Eye Technologies Falderal / bfe24f2
Slightly improve tests for freestyle format. Chris Pressey 2 years ago
2 changed file(s) with 20 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
3030 Location: test-freestyle-format.markdown, line 68
3131 Function: Cat
3232 Impl : shell command "python cat.py"
33 Body : meow
33 Body :
34 | meow
35 ? rreoww
3436 Expected: error:
3537 bow
3638 wow
3739 Actual : output:
38 meow
40 | meow
41 ? rreoww
3942
4043 --------------------------------
4144 Total test runs: 10, failures: 3
0 Falderal Test: "new" format for tests
0 Falderal Test: "freestyle" format for tests
11 -------------------------------------
22
3 This document tests the alternate format for tests introduced in
4 the Falderal Literate Test Format version 0.11. This format allows
5 the test body to consist entirely of un-prefixed text, as long as
6 it is written in a single indented block, and the final line(s) of
7 the test begin with one of the prefixes `=> ` or `==> ` or `===> `
8 or `?> ` or `??> `or `???> `.
3 This document tests the alternate ("freestyle") format for tests
4 introduced in the Falderal Literate Test Format version 0.11. This
5 format allows the test body to consist entirely of un-prefixed text,
6 as long as it is written in a single indented block, and as long as
7 the final line(s) of the test begin with one of the prefixes
8 `=> ` or `==> ` or `===> ` or `?> ` or `??> `or `???> `.
99
1010 -> Functionality "Cat" is implemented by shell command "python cat.py"
1111
3737
3838 | purr
3939 | prrr
40 | prreow
41 ==> | purr
42 ==> | prrr
43 ==> | prreow
40 = prreow
41 => | purr
42 => | prrr
43 => = prreow
4444
4545 | purr
4646 + prrr
47 + prreow
47 ? prreow
4848 => | purr
4949 => + prrr
50 => + prreow
50 => ? prreow
5151
5252 purr
5353 -> prrr
6464 meow
6565 ??> woof
6666
67 meow
67 | meow
68 ? rreoww
6869 ???> bow
6970 ???> wow