mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Fix interleaved text and choices
This commit is contained in:
parent
4125a4c99b
commit
aa8dfbd498
4 changed files with 70 additions and 28 deletions
19
test/results/choice text interleaved.ans
Normal file
19
test/results/choice text interleaved.ans
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--# run #--
|
||||
--- choice ---
|
||||
=> | {}"a" |
|
||||
--- text ---
|
||||
| {}"-> a" |
|
||||
--- choice ---
|
||||
=> | {}"aa" |
|
||||
> | {}"ab" |
|
||||
--- text ---
|
||||
| {}"-> aa" |
|
||||
| {}"x" |
|
||||
--- choice ---
|
||||
=> | {}"b" |
|
||||
--- text ---
|
||||
| {}"-> b" |
|
||||
--- return ---
|
||||
()
|
||||
--# saved #--
|
||||
{}
|
||||
14
test/tests/choice text interleaved.ans
Normal file
14
test/tests/choice text interleaved.ans
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
:@choice = 1
|
||||
|
||||
:f = $_
|
||||
| a |>
|
||||
|-> a
|
||||
| aa |>
|
||||
|-> aa
|
||||
| ab |>
|
||||
|-> ab
|
||||
| x
|
||||
| b |>
|
||||
|-> b
|
||||
|
||||
f!
|
||||
Loading…
Add table
Add a link
Reference in a new issue