1
0
Fork 0
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:
Étienne Fildadut 2023-12-31 14:30:14 +01:00
parent aa8dfbd498
commit 409a2e7095
22 changed files with 516 additions and 5 deletions

View 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}

View 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}

View file

@ -1,6 +1,8 @@
--# run #--
--- error ---
can'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:
can'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>))

View 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}

View 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}

View 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}

View file

@ -0,0 +1,7 @@
--# run #--
--- text ---
| {}"b" |
--- return ---
()
--# saved #--
{}

View 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}

View 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}

View 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}

View 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}