mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Firth test batch and associated fixes
This commit is contained in:
parent
aa8dfbd498
commit
409a2e7095
22 changed files with 516 additions and 5 deletions
45
test/results/checkpoint change.ans
Normal file
45
test/results/checkpoint change.ans
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"From start:" |
|
||||
| {}"x" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"From p checkpoint:" |
|
||||
| {}"a" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"From q checkpoint:" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"From q checkpoint again:" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"Go to p again by setting checkpoint manually:" |
|
||||
| {}"a" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"From q again:" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#q, "f.reached":*{#p:1, #q:2}, "f.run":6}
|
||||
9
test/results/checkpoint reached seen.ans
Normal file
9
test/results/checkpoint reached seen.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"Seen: " {}"2" {}"" |
|
||||
--- text ---
|
||||
| {}"Reached: " {}"1" {}"" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#p, "f.reached":*{#p:1, #s:2}, "f.run":2}
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31mcan't call overload overload<($(c::($(x) <lua function>), s::($(x) <lua function>)) = v; <lua function>), ($(c::($(x) <lua function>), s::($(x) <lua function>)) = v; <lua function>), ($(c::($(x) <lua function>), s::($(x) <lua function>)) <lua function>)>: no function match (overload<($(b) _), ($(x) _), ($() _)>, "a"), possible functions were:
|
||||
[0m[31m[0m[31m[0m[31m[0m[31mcan't call overload overload<($(s::($(x) type(x) == t), k::($(x) <lua function>)) = val; _), ($(s::($(x) type(x) == t), k::($(x) <lua function>)) _), ($(c::($(x) <lua function>), s::($(x) <lua function>)) = v; <lua function>), ($(c::($(x) <lua function>), s::($(x) <lua function>)) = v; <lua function>), ($(c::($(x) <lua function>), s::($(x) <lua function>)) <lua function>)>: no function match (overload<($(b) _), ($(x) _), ($() _)>, "a"), possible functions were:
|
||||
• (s::($(x) type(x) == t), k::($(x) <lua function>)) = val: expected 3 arguments, received 2
|
||||
• (s::($(x) type(x) == t), k::($(x) <lua function>)): type check failure for parameter s in function (s::($(x) type(x) == t), k::($(x) <lua function>))
|
||||
• (c::($(x) <lua function>), s::($(x) <lua function>)) = v: expected 3 arguments, received 2
|
||||
• (c::($(x) <lua function>), s::($(x) <lua function>)) = v: expected 3 arguments, received 2
|
||||
• (c::($(x) <lua function>), s::($(x) <lua function>)): type check failure for parameter c in function (c::($(x) <lua function>), s::($(x) <lua function>))[0m
|
||||
|
|
|
|||
17
test/results/paragraph run force.ans
Normal file
17
test/results/paragraph run force.ans
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"Force run checkpoint:" |
|
||||
| {}"a" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"From checkpoint:" |
|
||||
| {}"a" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"Force no checkpoint:" |
|
||||
| {}"x" |
|
||||
| {}"b" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#p, "f.reached":*{#p:1}, "f.run":3}
|
||||
17
test/results/paragraph run from.ans
Normal file
17
test/results/paragraph run from.ans
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"Force run from checkpoint:" |
|
||||
| {}"a" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"From checkpoint:" |
|
||||
| {}"a" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"Force no checkpoint:" |
|
||||
| {}"x" |
|
||||
| {}"b" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#p, "f.reached":*{#p:1}, "f.run":3}
|
||||
17
test/results/paragraph run.ans
Normal file
17
test/results/paragraph run.ans
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"No checkpoint:" |
|
||||
| {}"x" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"From checkpoint:" |
|
||||
| {}"a" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"Force no checkpoint:" |
|
||||
| {}"x" |
|
||||
| {}"b" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#p, "f.reached":*{#p:2}, "f.run":3}
|
||||
7
test/results/paragraph.ans
Normal file
7
test/results/paragraph.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"b" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
38
test/results/resume from nested paragraph.ans
Normal file
38
test/results/resume from nested paragraph.ans
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"From start:" |
|
||||
| {}"x" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"From p checkpoint:" |
|
||||
| {}"a" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"From q checkpoint:" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"From q checkpoint again:" |
|
||||
| {}"b" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- text ---
|
||||
| {}"Force p checkpoint:" |
|
||||
| {}"a" |
|
||||
--- text ---
|
||||
| {}"c" |
|
||||
--- text ---
|
||||
| {}"d" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#q, "f.reached":*{#p:1, #q:2}, "f.run":5}
|
||||
21
test/results/resume from paragraph restore tags.ans
Normal file
21
test/results/resume from paragraph restore tags.ans
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {"a":"a"}"a" |
|
||||
--- text ---
|
||||
| {"a":"a", "b":"b", "x":"x"}"c" |
|
||||
--- text ---
|
||||
| {"a":"a"}"d" |
|
||||
--- text ---
|
||||
| {}"e" |
|
||||
--- text ---
|
||||
| {"a":"a", "b":"b", "c":"c", "x":"x"}"b" |
|
||||
--- text ---
|
||||
| {"a":"a", "b":"b", "x":"x"}"c" |
|
||||
--- text ---
|
||||
| {"a":"a"}"d" |
|
||||
--- text ---
|
||||
| {}"e" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#p, "f.reached":*{#p:1}, "f.run":2}
|
||||
85
test/results/resume from paragraph with nested choice.ans
Normal file
85
test/results/resume from paragraph with nested choice.ans
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"f:" |
|
||||
--- choice ---
|
||||
> | {}"a" |
|
||||
=> | {}"b" |
|
||||
--- text ---
|
||||
| {}"-> b" |
|
||||
--- choice ---
|
||||
=> | {}"c" |
|
||||
--- text ---
|
||||
| {}"-> c" |
|
||||
| {}"f from #p:" |
|
||||
--- choice ---
|
||||
> | {}"aa" |
|
||||
=> | {}"ab" |
|
||||
--- text ---
|
||||
| {}"-> ab" |
|
||||
--- text ---
|
||||
| {}"g:" |
|
||||
--- choice ---
|
||||
> | {}"a" |
|
||||
=> | {}"b" |
|
||||
--- text ---
|
||||
| {}"-> b" |
|
||||
| {}"autoflush" |
|
||||
--- choice ---
|
||||
=> | {}"c" |
|
||||
--- text ---
|
||||
| {}"-> c" |
|
||||
| {}"g from #p:" |
|
||||
--- choice ---
|
||||
> | {}"aa" |
|
||||
=> | {}"ab" |
|
||||
--- text ---
|
||||
| {}"-> ab" |
|
||||
| {}"autoflush" |
|
||||
--- choice ---
|
||||
=> | {}"c" |
|
||||
--- text ---
|
||||
| {}"-> c" |
|
||||
--- text ---
|
||||
| {}"h:" |
|
||||
--- choice ---
|
||||
=> | {}"a" |
|
||||
> | {}"b" |
|
||||
> | {}"c" |
|
||||
--- text ---
|
||||
| {}"-> a" |
|
||||
--- choice ---
|
||||
=> | {}"aa" |
|
||||
> | {}"ab" |
|
||||
--- text ---
|
||||
| {}"-> aa" |
|
||||
| {}"h from #p:" |
|
||||
--- choice ---
|
||||
=> | {}"aa" |
|
||||
> | {}"ab" |
|
||||
> | {}"c" |
|
||||
--- text ---
|
||||
| {}"-> aa" |
|
||||
--- text ---
|
||||
| {}"i:" |
|
||||
--- choice ---
|
||||
=> | {}"a" |
|
||||
> | {}"b" |
|
||||
> | {}"c" |
|
||||
--- text ---
|
||||
| {}"-> a" |
|
||||
--- choice ---
|
||||
=> | {}"aa" |
|
||||
> | {}"ab" |
|
||||
--- text ---
|
||||
| {}"-> aa" |
|
||||
| {}"i from #p:" |
|
||||
--- choice ---
|
||||
=> | {}"aa" |
|
||||
> | {}"ab" |
|
||||
> | {}"c" |
|
||||
--- text ---
|
||||
| {}"-> aa" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#p, "f.run":2, "g.checkpoint":#p, "g.run":2, "h.checkpoint":#p, "h.reached":*{#p:1}, "h.run":2, "i.checkpoint":#p, "i.reached":*{#p:1}, "i.run":2}
|
||||
13
test/results/resume from paragraph with nested condition.ans
Normal file
13
test/results/resume from paragraph with nested condition.ans
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"x" |
|
||||
--- text ---
|
||||
| {}"x" |
|
||||
--- text ---
|
||||
| {}"y" |
|
||||
--- text ---
|
||||
| {}"x" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"f.checkpoint":#p, "f.reached":*{#p:1}, "f.run":2, "g.checkpoint":#p, "g.run":2}
|
||||
Loading…
Add table
Add a link
Reference in a new issue