mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Update tests
This commit is contained in:
parent
a79b054bfb
commit
a85e7ab0af
73 changed files with 246 additions and 157 deletions
|
|
@ -4,7 +4,7 @@
|
|||
--- text ---
|
||||
| {}"" {}"type(\"kg\", 12)" {}"" |
|
||||
--- error ---
|
||||
[0m[31m[0m[31mtype check failure for weigh; 32 does not satisfy ($(x) type(x) == t)[0m
|
||||
[0m[31m[0m[31mtype check failure for weigh; 32 does not satisfy $(x) type(x) == t[0m
|
||||
↳ from [4mtest/tests/constrained variable assignement.ans:9:7[0m in assignment: [2mweigh = 32[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:weigh::is("kg") = type(5, "kg")…[0m
|
||||
--# saved #--
|
||||
|
|
|
|||
7
test/results/default attached block.ans
Normal file
7
test/results/default attached block.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"ok" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{"fn.checkpoint":false, "fn.run":1}
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
--- text ---
|
||||
| {}"" {}"42" {}"" |
|
||||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31midentifier "z" is undefined in branch 1228bcf1-5118-4955-10048-8fda790007be[0m
|
||||
[0m[31m[0m[31m[0m[31m[0m[31midentifier "z" is undefined in branch cf017f8a-7c86-4871-109af-6658231331e6[0m
|
||||
↳ from [4mtest/tests/exported variable nested.ans:12:3[0m in identifier: [2mz[0m[0m
|
||||
↳ from [4mtest/tests/exported variable nested.ans:12:1[0m in text interpolation: [2m| {z} |[0m[0m
|
||||
↳ from [4mtest/tests/exported variable nested.ans:12:1[0m in translatable: [2m| {z} |[0m[0m
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
[0m[31m[0m[31mcan't call closure ($(a, b) _): expected 2 arguments, received 1[0m
|
||||
[0m[31m[0m[31mcan't call function $(a, b) _: expected 2 arguments, received 1[0m
|
||||
↳ from [4mtest/tests/function args arity check fail.ans:4:2[0m in call: [2mf("ok")[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:f = ($(a, b) _)…[0m
|
||||
--# saved #--
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31midentifier "b" is undefined in branch 57b4c67d-b128-4b9a-11e39-0e6612f1210e[0m
|
||||
[0m[31m[0m[31m[0m[31m[0m[31midentifier "b" is undefined in branch cf017f8a-7c86-4871-109af-6658231331e6[0m
|
||||
↳ from [4mtest/tests/function scope wrong.ans:4:7[0m in identifier: [2mb[0m[0m
|
||||
↳ from [4mtest/tests/function scope wrong.ans:4:1[0m in text interpolation: [2m| a: {b} |[0m[0m
|
||||
↳ from [4mtest/tests/function scope wrong.ans:4:1[0m in translatable: [2m| a: {b} |[0m[0m
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@
|
|||
| {}"" {}"\"d\":[]" {}"" |
|
||||
--- text ---
|
||||
| {}"function:" |
|
||||
| {}"" {}"($() 12)" {}"" |
|
||||
| {}"" {}"($(x) x)" {}"" |
|
||||
| {}"" {}"$() 12" {}"" |
|
||||
| {}"" {}"$(x) x" {}"" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
|
|
|
|||
|
|
@ -1,25 +1,21 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mabort[0m
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mabort[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error bis.ans:14:7[0m in call: [2merror("abort")[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error bis.ans:3:1[0m in block: [2minsert(a, b)…[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error bis.ans:3:18[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error bis.ans:3:17[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error bis.ans:3:17[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:29:6[0m in call: [2mfn![0m[0m
|
||||
↳ from [4mscript.ans:27:3[0m in block: [2mresumed from = ()…[0m[0m
|
||||
↳ from [4mscript.ans:27:5[0m in call: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:27:3[0m in call: [2m~_[0m[0m
|
||||
↳ from [4mscript.ans:27:3[0m in partial scope: [2m~_…[0m[0m
|
||||
↳ from [4mscript.ans:23:2[0m in block: [2mfn . "current checkpoint" ~…[0m[0m
|
||||
↳ from [4mscript.ans:27:7[0m in call: [2melse![0m[0m
|
||||
↳ from [4mscript.ans:27:3[0m in partial scope: [2melse!…[0m[0m
|
||||
↳ from [4mscript.ans:23:2[0m in block: [2mif(fn . "current checkpoint")…[0m[0m
|
||||
↳ from [4mscript.ans:23:9[0m in call: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:23:7[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:23:7[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:37:9[0m in call: [2mvalue(s)![0m[0m
|
||||
↳ from [4mscript.ans:36:1[0m in block: [2mvalue(s)![0m[0m
|
||||
↳ from [4mscript.ans:36:20[0m in call: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:36:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:36:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error bis.ans:19:2[0m in call: [2mf![0m[0m
|
||||
↳ from [4m?[0m in block: [2m:a = *[1]…[0m
|
||||
--# post run check #--
|
||||
|
|
|
|||
|
|
@ -1,25 +1,21 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mabort[0m
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mabort[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error.ans:14:7[0m in call: [2merror("abort")[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error.ans:3:1[0m in block: [2minsert(a, b)…[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error.ans:3:18[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error.ans:3:17[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error.ans:3:17[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:29:6[0m in call: [2mfn![0m[0m
|
||||
↳ from [4mscript.ans:27:3[0m in block: [2mresumed from = ()…[0m[0m
|
||||
↳ from [4mscript.ans:27:5[0m in call: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:27:3[0m in call: [2m~_[0m[0m
|
||||
↳ from [4mscript.ans:27:3[0m in partial scope: [2m~_…[0m[0m
|
||||
↳ from [4mscript.ans:23:2[0m in block: [2mfn . "current checkpoint" ~…[0m[0m
|
||||
↳ from [4mscript.ans:27:7[0m in call: [2melse![0m[0m
|
||||
↳ from [4mscript.ans:27:3[0m in partial scope: [2melse!…[0m[0m
|
||||
↳ from [4mscript.ans:23:2[0m in block: [2mif(fn . "current checkpoint")…[0m[0m
|
||||
↳ from [4mscript.ans:23:9[0m in call: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:23:7[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:23:7[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:37:9[0m in call: [2mvalue(s)![0m[0m
|
||||
↳ from [4mscript.ans:36:1[0m in block: [2mvalue(s)![0m[0m
|
||||
↳ from [4mscript.ans:36:20[0m in call: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:36:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mscript.ans:36:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/merge nested mutable error.ans:19:2[0m in call: [2mf![0m[0m
|
||||
↳ from [4m?[0m in block: [2m:a = *[1]…[0m
|
||||
--# post run check #--
|
||||
|
|
|
|||
|
|
@ -14,21 +14,18 @@
|
|||
--- text ---
|
||||
| {}"CHECK 2" |
|
||||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mt[0m
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mt[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:32:7[0m in call: [2merror("t")[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:7:1[0m in block: [2minsert(t, len(l) + 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:7:8[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:7:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:7:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:19:4[0m in call: [2mf(t)[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:15:2[0m in block: [2m| REC |…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:15:10[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:15:8[0m in call: [2mn < 1 ~ _[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:15:2[0m in partial scope: [2mn < 1 ~…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:15:4[0m in call: [2mif(n < 1)[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:15:2[0m in partial scope: [2mif(n < 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:7:1[0m in block: [2minsert(t, len(l) + 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:7:8[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:7:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:7:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable bis error.ans:41:2[0m in call: [2mf(l)[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:x = *[99]…[0m
|
||||
--# post run check #--
|
||||
|
|
|
|||
|
|
@ -10,21 +10,18 @@
|
|||
--- text ---
|
||||
| {}"CHECK" |
|
||||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mt[0m
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mt[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:23:7[0m in call: [2merror("t")[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:5:1[0m in block: [2minsert(t, len(l) + 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:5:8[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:5:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:5:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:17:4[0m in call: [2mf(t)[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:13:2[0m in block: [2m| REC |…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:13:10[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:13:8[0m in call: [2mn < 1 ~ _[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:13:2[0m in partial scope: [2mn < 1 ~…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:13:4[0m in call: [2mif(n < 1)[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:13:2[0m in partial scope: [2mif(n < 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:5:1[0m in block: [2minsert(t, len(l) + 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:5:8[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:5:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:5:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable error.ans:32:2[0m in call: [2mf(l)[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:l = *[1]…[0m
|
||||
--# post run check #--
|
||||
|
|
|
|||
|
|
@ -14,21 +14,18 @@
|
|||
--- text ---
|
||||
| {}"CHECK 2" |
|
||||
--- error ---
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mt[0m
|
||||
[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31m[0m[31mt[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:34:7[0m in call: [2merror("t")[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:7:1[0m in block: [2minsert(t, len(l) + 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:7:8[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:7:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:7:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:19:4[0m in call: [2mf(t)[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:15:2[0m in block: [2m| REC |…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:15:10[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:15:8[0m in call: [2mn < 1 ~ _[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:15:2[0m in partial scope: [2mn < 1 ~…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:15:4[0m in call: [2mif(n < 1)[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:15:2[0m in partial scope: [2mif(n < 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:7:1[0m in block: [2minsert(t, len(l) + 1)…[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:7:8[0m in call: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:7:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:7:1[0m in return boundary: [2m_[0m[0m
|
||||
↳ from [4mtest/tests/scope checkpoint mutable ter error.ans:43:2[0m in call: [2mf(l)[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:x = *[99]…[0m
|
||||
--# post run check #--
|
||||
|
|
|
|||
|
|
@ -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 #--
|
||||
{}
|
||||
|
|
@ -2,6 +2,6 @@
|
|||
--- text ---
|
||||
| {}"lol" |
|
||||
--- return ---
|
||||
@| {}"a " {}"d" {}" b" |
|
||||
| {}"a " {}"d" {}" b" |
|
||||
--# saved #--
|
||||
{}
|
||||
19
test/results/while break.ans
Normal file
19
test/results/while break.ans
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"0" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"1" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"2" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"3" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"4" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"5" {}"" |
|
||||
--- text ---
|
||||
| {}"ok" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
17
test/results/while continue.ans
Normal file
17
test/results/while continue.ans
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"1" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"2" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"4" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"5" {}"" |
|
||||
--- text ---
|
||||
| {}"" {}"6" {}"" |
|
||||
--- text ---
|
||||
| {}"ok" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
|
|
@ -36,6 +36,6 @@
|
|||
--- text ---
|
||||
| {}"" {}"5" {}"" |
|
||||
--- return ---
|
||||
@()
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
Loading…
Add table
Add a link
Reference in a new issue