1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00

Update tests

This commit is contained in:
Étienne Fildadut 2024-01-02 00:36:10 +01:00
parent a79b054bfb
commit a85e7ab0af
73 changed files with 246 additions and 157 deletions

View file

@ -4,7 +4,7 @@
--- text ---
| {}"" {}"type(\"kg\", 12)" {}"" |
--- error ---
type check failure for weigh; 32 does not satisfy ($(x) type(x) == t)
type check failure for weigh; 32 does not satisfy $(x) type(x) == t
↳ from test/tests/constrained variable assignement.ans:9:7 in assignment: weigh = 32
↳ from ? in block: :weigh::is("kg") = type(5, "kg")…
--# saved #--

View file

@ -0,0 +1,7 @@
--# run #--
--- text ---
| {}"ok" |
--- return ---
()
--# saved #--
{"fn.checkpoint":false, "fn.run":1}

View file

@ -5,7 +5,7 @@
--- text ---
| {}"" {}"42" {}"" |
--- error ---
identifier "z" is undefined in branch 1228bcf1-5118-4955-10048-8fda790007be
identifier "z" is undefined in branch cf017f8a-7c86-4871-109af-6658231331e6
↳ from test/tests/exported variable nested.ans:12:3 in identifier: z
↳ from test/tests/exported variable nested.ans:12:1 in text interpolation: | {z} |
↳ from test/tests/exported variable nested.ans:12:1 in translatable: | {z} |

View file

@ -1,6 +1,6 @@
--# run #--
--- error ---
can't call closure ($(a, b) _): expected 2 arguments, received 1
can't call function $(a, b) _: expected 2 arguments, received 1
↳ from test/tests/function args arity check fail.ans:4:2 in call: f("ok")
↳ from ? in block: :f = ($(a, b) _)…
--# saved #--

View file

@ -2,14 +2,14 @@
--- text ---
| {}"c" |
--- text ---
| {}"a" |
--- text ---
| {}"c" |
| {}"b" |
--- text ---
| {}"a" |
--- text ---
| {}"b" |
--- text ---
| {}"b" |
--- return ---
()
--# saved #--
{"a.checkpoint":false, "a.run":2, "b.checkpoint":false, "b.run":1, "c.checkpoint":false, "c.run":2}
{"a.checkpoint":false, "a.run":1, "b.checkpoint":false, "b.run":3, "c.checkpoint":false, "c.run":1}

View file

@ -1,6 +1,6 @@
--# run #--
--- error ---
identifier "b" is undefined in branch 57b4c67d-b128-4b9a-11e39-0e6612f1210e
identifier "b" is undefined in branch cf017f8a-7c86-4871-109af-6658231331e6
↳ from test/tests/function scope wrong.ans:4:7 in identifier: b
↳ from test/tests/function scope wrong.ans:4:1 in text interpolation: | a: {b} |
↳ from test/tests/function scope wrong.ans:4:1 in translatable: | a: {b} |

View file

@ -34,8 +34,8 @@
| {}"" {}"\"d\":[]" {}"" |
--- text ---
| {}"function:" |
| {}"" {}"($() 12)" {}"" |
| {}"" {}"($(x) x)" {}"" |
| {}"" {}"$() 12" {}"" |
| {}"" {}"$(x) x" {}"" |
--- return ---
()
--# saved #--

View file

@ -1,25 +1,21 @@
--# run #--
--- error ---
abort
abort
↳ from test/tests/merge nested mutable error bis.ans:14:7 in call: error("abort")
↳ from test/tests/merge nested mutable error bis.ans:3:1 in block: insert(a, b)…
↳ from test/tests/merge nested mutable error bis.ans:3:18 in call: _
↳ from test/tests/merge nested mutable error bis.ans:3:17 in return boundary: _
↳ from test/tests/merge nested mutable error bis.ans:3:17 in return boundary: _
↳ from script.ans:29:6 in call: fn!
↳ from script.ans:27:3 in block: resumed from = ()…
↳ from script.ans:27:5 in call: _
↳ from script.ans:27:3 in call: ~_
↳ from script.ans:27:3 in partial scope: ~_…
↳ from script.ans:23:2 in block: fn . "current checkpoint" ~…
↳ from script.ans:27:7 in call: else!
↳ from script.ans:27:3 in partial scope: else!…
↳ from script.ans:23:2 in block: if(fn . "current checkpoint")…
↳ from script.ans:23:9 in call: _
↳ from script.ans:23:7 in return boundary: _
↳ from script.ans:23:7 in return boundary: _
↳ from script.ans:37:9 in call: value(s)!
↳ from script.ans:36:1 in block: value(s)!
↳ from script.ans:36:20 in call: _
↳ from script.ans:36:1 in return boundary: _
↳ from script.ans:36:1 in return boundary: _
↳ from test/tests/merge nested mutable error bis.ans:19:2 in call: f!
↳ from ? in block: :a = *[1]…
--# post run check #--

View file

@ -1,25 +1,21 @@
--# run #--
--- error ---
abort
abort
↳ from test/tests/merge nested mutable error.ans:14:7 in call: error("abort")
↳ from test/tests/merge nested mutable error.ans:3:1 in block: insert(a, b)…
↳ from test/tests/merge nested mutable error.ans:3:18 in call: _
↳ from test/tests/merge nested mutable error.ans:3:17 in return boundary: _
↳ from test/tests/merge nested mutable error.ans:3:17 in return boundary: _
↳ from script.ans:29:6 in call: fn!
↳ from script.ans:27:3 in block: resumed from = ()…
↳ from script.ans:27:5 in call: _
↳ from script.ans:27:3 in call: ~_
↳ from script.ans:27:3 in partial scope: ~_…
↳ from script.ans:23:2 in block: fn . "current checkpoint" ~…
↳ from script.ans:27:7 in call: else!
↳ from script.ans:27:3 in partial scope: else!…
↳ from script.ans:23:2 in block: if(fn . "current checkpoint")…
↳ from script.ans:23:9 in call: _
↳ from script.ans:23:7 in return boundary: _
↳ from script.ans:23:7 in return boundary: _
↳ from script.ans:37:9 in call: value(s)!
↳ from script.ans:36:1 in block: value(s)!
↳ from script.ans:36:20 in call: _
↳ from script.ans:36:1 in return boundary: _
↳ from script.ans:36:1 in return boundary: _
↳ from test/tests/merge nested mutable error.ans:19:2 in call: f!
↳ from ? in block: :a = *[1]…
--# post run check #--

View file

@ -14,21 +14,18 @@
--- text ---
| {}"CHECK 2" |
--- error ---
t
t
↳ from test/tests/scope checkpoint mutable bis error.ans:32:7 in call: error("t")
↳ from test/tests/scope checkpoint mutable bis error.ans:7:1 in block: insert(t, len(l) + 1)…
↳ from test/tests/scope checkpoint mutable bis error.ans:7:8 in call: _
↳ from test/tests/scope checkpoint mutable bis error.ans:7:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable bis error.ans:7:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable bis error.ans:19:4 in call: f(t)
↳ from test/tests/scope checkpoint mutable bis error.ans:15:2 in block: | REC |…
↳ from test/tests/scope checkpoint mutable bis error.ans:15:10 in call: _
↳ from test/tests/scope checkpoint mutable bis error.ans:15:8 in call: n < 1 ~ _
↳ from test/tests/scope checkpoint mutable bis error.ans:15:2 in partial scope: n < 1 ~…
↳ from test/tests/scope checkpoint mutable bis error.ans:15:4 in call: if(n < 1)
↳ from test/tests/scope checkpoint mutable bis error.ans:15:2 in partial scope: if(n < 1)…
↳ from test/tests/scope checkpoint mutable bis error.ans:7:1 in block: insert(t, len(l) + 1)…
↳ from test/tests/scope checkpoint mutable bis error.ans:7:8 in call: _
↳ from test/tests/scope checkpoint mutable bis error.ans:7:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable bis error.ans:7:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable bis error.ans:41:2 in call: f(l)
↳ from ? in block: :x = *[99]…
--# post run check #--

View file

@ -10,21 +10,18 @@
--- text ---
| {}"CHECK" |
--- error ---
t
t
↳ from test/tests/scope checkpoint mutable error.ans:23:7 in call: error("t")
↳ from test/tests/scope checkpoint mutable error.ans:5:1 in block: insert(t, len(l) + 1)…
↳ from test/tests/scope checkpoint mutable error.ans:5:8 in call: _
↳ from test/tests/scope checkpoint mutable error.ans:5:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable error.ans:5:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable error.ans:17:4 in call: f(t)
↳ from test/tests/scope checkpoint mutable error.ans:13:2 in block: | REC |…
↳ from test/tests/scope checkpoint mutable error.ans:13:10 in call: _
↳ from test/tests/scope checkpoint mutable error.ans:13:8 in call: n < 1 ~ _
↳ from test/tests/scope checkpoint mutable error.ans:13:2 in partial scope: n < 1 ~…
↳ from test/tests/scope checkpoint mutable error.ans:13:4 in call: if(n < 1)
↳ from test/tests/scope checkpoint mutable error.ans:13:2 in partial scope: if(n < 1)…
↳ from test/tests/scope checkpoint mutable error.ans:5:1 in block: insert(t, len(l) + 1)…
↳ from test/tests/scope checkpoint mutable error.ans:5:8 in call: _
↳ from test/tests/scope checkpoint mutable error.ans:5:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable error.ans:5:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable error.ans:32:2 in call: f(l)
↳ from ? in block: :l = *[1]…
--# post run check #--

View file

@ -14,21 +14,18 @@
--- text ---
| {}"CHECK 2" |
--- error ---
t
t
↳ from test/tests/scope checkpoint mutable ter error.ans:34:7 in call: error("t")
↳ from test/tests/scope checkpoint mutable ter error.ans:7:1 in block: insert(t, len(l) + 1)…
↳ from test/tests/scope checkpoint mutable ter error.ans:7:8 in call: _
↳ from test/tests/scope checkpoint mutable ter error.ans:7:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable ter error.ans:7:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable ter error.ans:19:4 in call: f(t)
↳ from test/tests/scope checkpoint mutable ter error.ans:15:2 in block: | REC |…
↳ from test/tests/scope checkpoint mutable ter error.ans:15:10 in call: _
↳ from test/tests/scope checkpoint mutable ter error.ans:15:8 in call: n < 1 ~ _
↳ from test/tests/scope checkpoint mutable ter error.ans:15:2 in partial scope: n < 1 ~…
↳ from test/tests/scope checkpoint mutable ter error.ans:15:4 in call: if(n < 1)
↳ from test/tests/scope checkpoint mutable ter error.ans:15:2 in partial scope: if(n < 1)…
↳ from test/tests/scope checkpoint mutable ter error.ans:7:1 in block: insert(t, len(l) + 1)…
↳ from test/tests/scope checkpoint mutable ter error.ans:7:8 in call: _
↳ from test/tests/scope checkpoint mutable ter error.ans:7:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable ter error.ans:7:1 in return boundary: _
↳ from test/tests/scope checkpoint mutable ter error.ans:43:2 in call: f(l)
↳ from ? in block: :x = *[99]…
--# post run check #--

View file

@ -2,6 +2,6 @@
--- text ---
| {1:1}"lol" |
--- return ---
@| {}"a " {1:2}"d" {}" " {1:3}"t" {}" b" |
| {}"a " {1:2}"d" {}" " {1:3}"t" {}" b" |
--# saved #--
{}

View file

@ -2,6 +2,6 @@
--- text ---
| {}"lol" |
--- return ---
@| {}"a " {}"d" {}" b" |
| {}"a " {}"d" {}" b" |
--# saved #--
{}

View file

@ -0,0 +1,19 @@
--# run #--
--- text ---
| {}"" {}"0" {}"" |
--- text ---
| {}"" {}"1" {}"" |
--- text ---
| {}"" {}"2" {}"" |
--- text ---
| {}"" {}"3" {}"" |
--- text ---
| {}"" {}"4" {}"" |
--- text ---
| {}"" {}"5" {}"" |
--- text ---
| {}"ok" |
--- return ---
()
--# saved #--
{}

View file

@ -0,0 +1,17 @@
--# run #--
--- text ---
| {}"" {}"1" {}"" |
--- text ---
| {}"" {}"2" {}"" |
--- text ---
| {}"" {}"4" {}"" |
--- text ---
| {}"" {}"5" {}"" |
--- text ---
| {}"" {}"6" {}"" |
--- text ---
| {}"ok" |
--- return ---
()
--# saved #--
{}

View file

@ -36,6 +36,6 @@
--- text ---
| {}"" {}"5" {}"" |
--- return ---
@()
()
--# saved #--
{}