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
f372a32b48
commit
82b68e09a3
10 changed files with 158 additions and 124 deletions
10
test/tests/closure capture environment.ans
Normal file
10
test/tests/closure capture environment.ans
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
:f = ()
|
||||
:a = 12
|
||||
|
||||
_
|
||||
f = $
|
||||
|{a}
|
||||
|
||||
:a = 42
|
||||
|
||||
f!
|
||||
22
test/tests/resume from paragraph with nested choice 2.ans
Normal file
22
test/tests/resume from paragraph with nested choice 2.ans
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
:@choice=1
|
||||
:g = "g"!script($_)
|
||||
| a |>
|
||||
|-> a
|
||||
#p!checkpoint
|
||||
| aa |>
|
||||
|-> aa
|
||||
| ab |>
|
||||
|-> ab
|
||||
| b |>
|
||||
|-> b
|
||||
choice = 2
|
||||
|autoflush
|
||||
| c |>
|
||||
|-> c
|
||||
choice = 1
|
||||
|
||||
| g:
|
||||
g!
|
||||
|
||||
| g from #p:
|
||||
g!from(#p)
|
||||
22
test/tests/resume from paragraph with nested choice 3.ans
Normal file
22
test/tests/resume from paragraph with nested choice 3.ans
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
:@choice = 1
|
||||
:h = "h"!script($_)
|
||||
if(1)
|
||||
| a |>
|
||||
|-> a
|
||||
#p!checkpoint
|
||||
| aa |>
|
||||
|-> aa
|
||||
| ab |>
|
||||
|-> ab
|
||||
choice = 1
|
||||
| b |>
|
||||
|-> b
|
||||
| c |>
|
||||
|-> c
|
||||
choice = 1
|
||||
|
||||
| h:
|
||||
h!
|
||||
|
||||
| h from #p:
|
||||
h!from(#p)
|
||||
20
test/tests/resume from paragraph with nested choice 4.ans
Normal file
20
test/tests/resume from paragraph with nested choice 4.ans
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
:@choice = 1
|
||||
:i = "i"!script($_)
|
||||
| a |>
|
||||
|-> a
|
||||
#p!checkpoint
|
||||
| aa |>
|
||||
|-> aa
|
||||
| ab |>
|
||||
|-> ab
|
||||
| b |>
|
||||
|-> b
|
||||
if(1)
|
||||
| c |>
|
||||
|-> c
|
||||
|
||||
| i:
|
||||
i!
|
||||
|
||||
| i from #p:
|
||||
i!from(#p)
|
||||
|
|
@ -21,67 +21,3 @@ f!
|
|||
|
||||
| f from #p:
|
||||
f!from(#p)
|
||||
|
||||
:g = "g"!script($_)
|
||||
| a |>
|
||||
|-> a
|
||||
#p!checkpoint
|
||||
| aa |>
|
||||
|-> aa
|
||||
| ab |>
|
||||
|-> ab
|
||||
| b |>
|
||||
|-> b
|
||||
choice = 2
|
||||
|autoflush
|
||||
| c |>
|
||||
|-> c
|
||||
choice = 1
|
||||
|
||||
| g:
|
||||
g!
|
||||
|
||||
| g from #p:
|
||||
g!from(#p)
|
||||
|
||||
:h = "h"!script($_)
|
||||
if(1)
|
||||
| a |>
|
||||
|-> a
|
||||
#p!checkpoint
|
||||
| aa |>
|
||||
|-> aa
|
||||
| ab |>
|
||||
|-> ab
|
||||
choice = 1
|
||||
| b |>
|
||||
|-> b
|
||||
| c |>
|
||||
|-> c
|
||||
choice = 1
|
||||
|
||||
| h:
|
||||
h!
|
||||
|
||||
| h from #p:
|
||||
h!from(#p)
|
||||
|
||||
:i = "i"!script($_)
|
||||
| a |>
|
||||
|-> a
|
||||
#p!checkpoint
|
||||
| aa |>
|
||||
|-> aa
|
||||
| ab |>
|
||||
|-> ab
|
||||
| b |>
|
||||
|-> b
|
||||
if(1)
|
||||
| c |>
|
||||
|-> c
|
||||
|
||||
| i:
|
||||
i!
|
||||
|
||||
| i from #p:
|
||||
i!from(#p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue