mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
First test batch and associated fixes
The test runner is also nicer to use.
This commit is contained in:
parent
10084dec23
commit
82ce53be83
154 changed files with 1586 additions and 78 deletions
11
test/results/binary operator overload.ans
Normal file
11
test/results/binary operator overload.ans
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"-3" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"heh minus lol" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"generic minus" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/binop assignement.ans
Normal file
9
test/results/binop assignement.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"1" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"3" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
15
test/results/choice block.ans
Normal file
15
test/results/choice block.ans
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
--# run #--
|
||||
--- choice ---
|
||||
> | {}"ye "|
|
||||
=> | {}"ne "|
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- choice ---
|
||||
=> | {}"ho "|
|
||||
> | {}"oh "|
|
||||
--- text ---
|
||||
| {}"plop"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
12
test/results/choice function.ans
Normal file
12
test/results/choice function.ans
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--# run #--
|
||||
--- choice ---
|
||||
> | {}"ho "|
|
||||
> | {}"neol "|
|
||||
=> | {}"oh "|
|
||||
> | {}"neol "|
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
11
test/results/choice line interpolation with choice event.ans
Normal file
11
test/results/choice line interpolation with choice event.ans
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {1:1}"A"|
|
||||
--- choice ---
|
||||
=> | {}"Suprise choice! "|
|
||||
> | {}"Press " {}"JOIN" {}" to jump. "|
|
||||
> | {}"No "|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
12
test/results/choice line interpolation with event flush.ans
Normal file
12
test/results/choice line interpolation with event flush.ans
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {1:1}"a"|
|
||||
--- choice ---
|
||||
=> | {}"Press " {}"SPLIT" {}" to jump. "|
|
||||
> | {}"No "|
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
19
test/results/choice line interpolation with text event.ans
Normal file
19
test/results/choice line interpolation with text event.ans
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--# run #--
|
||||
--- choice ---
|
||||
=> | {}"Press " {1:1}"A" {}" to jump. "|
|
||||
> | {}"No "|
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- choice ---
|
||||
=> | {}"Other "|
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
| {1:1}"left"|
|
||||
--- choice ---
|
||||
=> | {}"Use " {}" joystick" {}" to move. "|
|
||||
--- text ---
|
||||
| {}"ko"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
18
test/results/choice preserve tags.ans
Normal file
18
test/results/choice preserve tags.ans
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
--# run #--
|
||||
--- choice ---
|
||||
=> | {1:42}"a "|
|
||||
> | {}"c "|
|
||||
--- text ---
|
||||
| {1:42}"b"|
|
||||
--- choice ---
|
||||
=> | {1:42}"a "|
|
||||
> | {"k":"v"}"d "|
|
||||
--- text ---
|
||||
| {1:42}"b"|
|
||||
| {"k":"v"}"e"|
|
||||
--- text ---
|
||||
| {}"f"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
10
test/results/choice simple.ans
Normal file
10
test/results/choice simple.ans
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--# run #--
|
||||
--- choice ---
|
||||
> | {}"ye "|
|
||||
=> | {}"ne "|
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
11
test/results/closure.ans
Normal file
11
test/results/closure.ans
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"5" {}" = 5"|
|
||||
| {}"" {}"8" {}" = 8"|
|
||||
--- text ---
|
||||
| {}"" {}"4" {}" = 4"|
|
||||
| {}"" {}"7" {}" = 7"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
5
test/results/comment.ans
Normal file
5
test/results/comment.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--# run #--
|
||||
--- return ---
|
||||
8
|
||||
--# saved #--
|
||||
{}
|
||||
8
test/results/condition decorator.ans
Normal file
8
test/results/condition decorator.ans
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
| {}"ok bis"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/condition else false.ans
Normal file
7
test/results/condition else false.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/condition else true.ans
Normal file
7
test/results/condition else true.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/condition elseif false.ans
Normal file
7
test/results/condition elseif false.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/condition elseif true.ans
Normal file
7
test/results/condition elseif true.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
5
test/results/condition false.ans
Normal file
5
test/results/condition false.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--# run #--
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/condition operator.ans
Normal file
9
test/results/condition operator.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a " {}"b" {}" c"|
|
||||
--- text ---
|
||||
| {}"a " {}"()" {}" c"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/condition true.ans
Normal file
7
test/results/condition true.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/constant variable.ans
Normal file
7
test/results/constant variable.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
./state/State.lua:145: [0m[31m[0m[31mtrying to change the value of constant a[0m
|
||||
↳ from [4mtest/tests/constant variable.ans:5:3[0m in assignment: [2ma = 52[0m[0m
|
||||
↳ from [4m?[0m in block: [2m::a = 3…[0m
|
||||
--# saved #--
|
||||
{}
|
||||
8
test/results/custom text formatting.ans
Normal file
8
test/results/custom text formatting.ans
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"\"Name: Darmanin\\\
|
||||
Age: 38\"" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
4
test/results/define override function.ans
Normal file
4
test/results/define override function.ans
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
--# parse error #--
|
||||
[0m[31m[0m[31ma is already defined in the current scope[0m
|
||||
↳ from [4mtest/tests/define override function.ans:4:4[0m in definition: [2m:a = 2[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:a = ($() _)…[0m
|
||||
5
test/results/define override variable.ans
Normal file
5
test/results/define override variable.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--# parse error #--
|
||||
[0m[31m[0m[31m[0m[31mcan't add an overload variant to non-overloadable variable a defined in the same scope[0m
|
||||
↳ from [4mtest/tests/define override variable.ans:3:1[0m in definition: [2m:a = ($() _)[0m[0m
|
||||
↳ from [4mtest/tests/define override variable.ans:3:1[0m in attach block: [2m:a = ($() _)…[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:a = 2…[0m
|
||||
4
test/results/define override.ans
Normal file
4
test/results/define override.ans
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
--# parse error #--
|
||||
[0m[31m[0m[31ma is already defined in the current scope[0m
|
||||
↳ from [4mtest/tests/define override.ans:3:4[0m in definition: [2m:a = 2[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:a = 5…[0m
|
||||
5
test/results/define.ans
Normal file
5
test/results/define.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--# run #--
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
13
test/results/flush.ans
Normal file
13
test/results/flush.ans
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
--- choice ---
|
||||
=> | {}"b "|
|
||||
--- text ---
|
||||
| {}"c"|
|
||||
--- choice ---
|
||||
=> | {}"d "|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/function arg.ans
Normal file
7
test/results/function arg.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"ok" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/function args arity check fail.ans
Normal file
7
test/results/function args arity check fail.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
./state/State.lua:145: [0m[31m[0m[31mcan't call closure ($(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 #--
|
||||
{}
|
||||
7
test/results/function args.ans
Normal file
7
test/results/function args.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"o" {}"" {}"k" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
15
test/results/function assignement.ans
Normal file
15
test/results/function assignement.ans
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"5" {}""|
|
||||
--- text ---
|
||||
| {}"v=" {}"50" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"50" {}""|
|
||||
--- text ---
|
||||
| {}"v2=" {}"ok" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"3" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
15
test/results/function definition.ans
Normal file
15
test/results/function definition.ans
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"25" {}" = " {}"25" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"4" {}" = " {}"4" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"14" {}" == 14"|
|
||||
--- text ---
|
||||
| {}"" {}"32" {}" == 32"|
|
||||
--- text ---
|
||||
| {}"" {}"49" {}" == 49"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/function name dispatch.ans
Normal file
9
test/results/function name dispatch.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
--- text ---
|
||||
| {}"x"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
5
test/results/function no conflict.ans
Normal file
5
test/results/function no conflict.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--# run #--
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/function return exit function.ans
Normal file
7
test/results/function return exit function.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"5" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/function return.ans
Normal file
7
test/results/function return.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"5" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/function scope wrong.ans
Normal file
9
test/results/function scope wrong.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
./state/State.lua:145: [0m[31m[0m[31m[0m[31m[0m[31midentifier "b" is undefined in branch 0a138a38-3faa-4478-10f6f-1a9de1e0a8e1[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
|
||||
↳ from [4m?[0m in block: [2m:a = ($() _)…[0m
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/function scope.ans
Normal file
7
test/results/function scope.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a: " {}"5" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/function selection.ans
Normal file
9
test/results/function selection.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"plopheh" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"4" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/function type dispatch ambigous.ans
Normal file
9
test/results/function type dispatch ambigous.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- error ---
|
||||
./state/State.lua:145: [0m[31m[0m[31mcan't call overload overload<($(a::($(x) <lua function>)) _), ($(x::($(x) <lua function>)) _)>: more than one function match (5), matching functions were at least (specificity 1.3):
|
||||
• (x::($(x) <lua function>))
|
||||
• (a::($(x) <lua function>))[0m
|
||||
↳ from [4mtest/tests/function type dispatch ambigous.ans:7:3[0m in call: [2mfn(5)[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:fn = ($(x::number) _)…[0m
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/function type dispatch.ans
Normal file
9
test/results/function type dispatch.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
--- text ---
|
||||
| {}"x"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/function ufcs arg.ans
Normal file
9
test/results/function ufcs arg.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"ok" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"ok" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/function ufcs args.ans
Normal file
7
test/results/function ufcs args.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"o" {}"" {}"k" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/function.ans
Normal file
9
test/results/function.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
--- text ---
|
||||
| {}"ok2"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
15
test/results/implicit multiplication.ans
Normal file
15
test/results/implicit multiplication.ans
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"8" {}" = 8"|
|
||||
--- text ---
|
||||
| {}"" {}"12" {}" = 12"|
|
||||
--- text ---
|
||||
| {}"" {}"6.28" {}" = 2pi"|
|
||||
--- text ---
|
||||
| {}"" {}"0.125" {}" = 0.125"|
|
||||
--- text ---
|
||||
| {}"" {}"2.1" {}" = 2.1"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
33
test/results/lazy boolean operators.ans
Normal file
33
test/results/lazy boolean operators.ans
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
| {}"b"|
|
||||
| {}"" {}"()" {}" = a b ()"|
|
||||
--- text ---
|
||||
| {}"b"|
|
||||
| {}"" {}"()" {}" = b ()"|
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
| {}"a"|
|
||||
| {}"" {}"1" {}" = a a 1"|
|
||||
--- text ---
|
||||
| {}"b"|
|
||||
| {}"" {}"()" {}" = b ()"|
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
| {}"" {}"1" {}" = a 1"|
|
||||
--- text ---
|
||||
| {}"b"|
|
||||
| {}"a"|
|
||||
| {}"" {}"1" {}" = b a 1"|
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
| {}"" {}"1" {}" = a 1"|
|
||||
--- text ---
|
||||
| {}"b"|
|
||||
| {}"b"|
|
||||
| {}"" {}"()" {}" = b b ()"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
17
test/results/list assignement.ans
Normal file
17
test/results/list assignement.ans
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"*[1, 2]" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"*[3, 2]" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"*[3, 5]" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"*[3, 12]" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"*[3, 12, 99]" {}""|
|
||||
--- error ---
|
||||
./state/State.lua:145: [0m[31m[0m[31mlist index out of bounds[0m
|
||||
↳ from [4mtest/tests/list assignement.ans:21:6[0m in call: [2mx(5) = 0[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:x = *[1, 2]…[0m
|
||||
--# saved #--
|
||||
{}
|
||||
17
test/results/list index.ans
Normal file
17
test/results/list index.ans
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"[1, 2, 3]" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"1" {}" == " {}"1" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"2" {}" == " {}"2" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"3" {}" == " {}"3" {}""|
|
||||
--- error ---
|
||||
./state/State.lua:145: [0m[31m[0m[31m[0m[31m[0m[31mtuple index out of bounds[0m
|
||||
↳ from [4mtest/tests/list index.ans:11:4[0m in call: [2mx(-4)[0m[0m
|
||||
↳ from [4mtest/tests/list index.ans:11:1[0m in text interpolation: [2m| {x(-4)}|[0m[0m
|
||||
↳ from [4mtest/tests/list index.ans:11:1[0m in translatable: [2m| {x(-4)}|[0m[0m
|
||||
↳ from [4m?[0m in block: [2m:x = [1, 2, 3]…[0m
|
||||
--# saved #--
|
||||
{}
|
||||
28
test/results/loop decorator.ans
Normal file
28
test/results/loop decorator.ans
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"1" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"2" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"3" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"4" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"5" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"6" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"7" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"8" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"9" {}"" {}"\
|
||||
" {}""|
|
||||
| {}"" {}"10" {}"" {}"\
|
||||
" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"11" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
23
test/results/map assignement.ans
Normal file
23
test/results/map assignement.ans
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"*{1:1, 2:2}" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"()" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"*{1:3, 2:2}" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"()" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"*{\"foo\":\"a\", 1:3, 2:2}" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"()" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"*{\"bar\":\"b\", \"foo\":\"a\", 1:3, 2:2}" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"()" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"*{\"bar\":\"b\", \"foo\":\"c\", 1:3, 2:2}" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
11
test/results/map index.ans
Normal file
11
test/results/map index.ans
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"{\"ahah\":23, \"k\":23, 3:12}" {}" == " {}"{" {}"3=12, ahah=23, k=23}"|
|
||||
--- text ---
|
||||
| {}"" {}"12" {}" == 12"|
|
||||
--- text ---
|
||||
| {}"" {}"23" {}" == 23"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/named arguments.ans
Normal file
7
test/results/named arguments.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"abc" {}" = " {}"abc" {}" = " {}"abc" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/namespace operator arbitrary expression.ans
Normal file
7
test/results/namespace operator arbitrary expression.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"5" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
10
test/results/nested conditions.ans
Normal file
10
test/results/nested conditions.ans
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"yes"|
|
||||
--- text ---
|
||||
| {}"ye"|
|
||||
| {}"da"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
20
test/results/nested flush.ans
Normal file
20
test/results/nested flush.ans
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
--- text ---
|
||||
| {}"b"|
|
||||
--- text ---
|
||||
| {}"c"|
|
||||
| {}"d"|
|
||||
--- text ---
|
||||
| {}"e"|
|
||||
--- choice ---
|
||||
=> | {}"f "|
|
||||
--- text ---
|
||||
| {}"g"|
|
||||
--- choice ---
|
||||
=> | {}"h "|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/optional arguments.ans
Normal file
7
test/results/optional arguments.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"abc" {}" = " {}"abc" {}" = " {}"abc" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/pair operator.ans
Normal file
9
test/results/pair operator.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"[\"test\":1, 3:\"p\", \"test\":\"foo\", \"ho\":\"ah\", \"test\":\"test\"]" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"[\"name\":1, 3:\"p\", \"test\":\"foo\", \"ho\":\"ah\", \"name\":\"test\"]" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
10
test/results/return in choice.ans
Normal file
10
test/results/return in choice.ans
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--# run #--
|
||||
--- choice ---
|
||||
=> | {}"a "|
|
||||
--- text ---
|
||||
| {}"x"|
|
||||
| {}"Yes."|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
14
test/results/string escaping.ans
Normal file
14
test/results/string escaping.ans
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"expression " {}"a" {}""|
|
||||
--- text ---
|
||||
| {}"quote " {}"\"" {}""|
|
||||
--- text ---
|
||||
| {}"other codes " {}"\
|
||||
" {}" " {}"\\" {}" " {}"\9" {}" " {}"{" {}"braces}"|
|
||||
--- text ---
|
||||
| {}"" {}"escaping expressions abc and {stuff} \\ and quotes \"" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
8
test/results/tag decorator nested.ans
Normal file
8
test/results/tag decorator nested.ans
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {1:1}"foo"|
|
||||
| {"a":[2, 3], "b":[1, 2], 1:1}"bar"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
8
test/results/tag decorator.ans
Normal file
8
test/results/tag decorator.ans
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {1:1}"foo"|
|
||||
| {"a":[2, 3], 1:1}"bar"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
8
test/results/tag empty.ans
Normal file
8
test/results/tag empty.ans
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {1:1}"foo"|
|
||||
| {1:1}"bar"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
8
test/results/tag.ans
Normal file
8
test/results/tag.ans
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {1:1}"foo"|
|
||||
| {"a":[2, 3], 1:1}"bar"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
11
test/results/text block.ans
Normal file
11
test/results/text block.ans
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
| {}"b c"|
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
| {}"b c"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
9
test/results/text break.ans
Normal file
9
test/results/text break.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
--- text ---
|
||||
| {}"b c"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
16
test/results/text escaping.ans
Normal file
16
test/results/text escaping.ans
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"expression " {}"{" {}"a}"|
|
||||
--- text ---
|
||||
| {}"quote " {}"\"" {}""|
|
||||
--- text ---
|
||||
| {}"other codes " {}"\
|
||||
" {}" " {}"\\" {}" " {}"\9" {}""|
|
||||
--- text ---
|
||||
| {}"decorators " {}"#" {}" tag " {}"~" {}" condition " {}"$" {}" fn"|
|
||||
--- text ---
|
||||
| {}"sub " {}"[" {}"text]"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/text format.ans
Normal file
7
test/results/text format.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a: " {}"5" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
19
test/results/text line interpolation with choice event.ans
Normal file
19
test/results/text line interpolation with choice event.ans
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {1:1}"A"|
|
||||
--- choice ---
|
||||
=> | {}"Surprise choice! "|
|
||||
--- text ---
|
||||
| {}"ok"|
|
||||
| {}"Press " {}"()" {}" to jump."|
|
||||
--- text ---
|
||||
| {1:1}"left"|
|
||||
--- choice ---
|
||||
=> | {}"Surprise choice! "|
|
||||
--- text ---
|
||||
| {}"ok2"|
|
||||
| {}"Use " {}" joystick" {}" to move."|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
13
test/results/text line interpolation with event flush.ans
Normal file
13
test/results/text line interpolation with event flush.ans
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {1:1}"A"|
|
||||
--- text ---
|
||||
| {}"Press " {}"()" {}" to jump."|
|
||||
--- text ---
|
||||
| {1:1}"left"|
|
||||
--- text ---
|
||||
| {}"Use " {}" joystick" {}" to move."|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
10
test/results/text line interpolation with text event.ans
Normal file
10
test/results/text line interpolation with text event.ans
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"Press " {1:1}"A" {}" to jump."|
|
||||
--- text ---
|
||||
| {1:2}"left"|
|
||||
| {}"Use " {}" joystick" {}" to move."|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
7
test/results/text.ans
Normal file
7
test/results/text.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"a"|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
11
test/results/unary operator overload.ans
Normal file
11
test/results/unary operator overload.ans
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"-5" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"minus lol" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"generic minus" {}""|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
19
test/results/while loop else.ans
Normal file
19
test/results/while loop else.ans
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"Start with i=" {}"1" {}":"|
|
||||
--- text ---
|
||||
| {}"" {}"1" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"2" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"3" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"4" {}""|
|
||||
--- text ---
|
||||
| {}"Start with i=" {}"5" {}":"|
|
||||
--- text ---
|
||||
| {}"Loop not ran."|
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
41
test/results/while loop.ans
Normal file
41
test/results/while loop.ans
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
--# run #--
|
||||
--- text ---
|
||||
| {}"" {}"0" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"1" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"2" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"3" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"4" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"5" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"6" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"7" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"8" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"9" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"10" {}""|
|
||||
--- text ---
|
||||
| {}"return in loop:"|
|
||||
--- text ---
|
||||
| {}"" {}"0" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"1" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"2" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"3" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"4" {}""|
|
||||
--- text ---
|
||||
| {}"" {}"5" {}""|
|
||||
--- return ---
|
||||
@()
|
||||
--# saved #--
|
||||
{}
|
||||
Loading…
Add table
Add a link
Reference in a new issue