1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 08:39:30 +00:00

Fourth test batch

This commit is contained in:
Étienne Fildadut 2023-12-30 23:45:30 +01:00
parent d928ff5598
commit 0a835a65d8
8 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,5 @@
--# run #--
--- return ---
"dramatic explosion"
--# saved #--
{}

View file

@ -0,0 +1,11 @@
--# run #--
--- text ---
| {}"" {}"42" {}"" |
--- error ---
no variable "y" defined in closure
↳ from test/tests/closure define nested.ans:12:4 in call: f . "y"
↳ from test/tests/closure define nested.ans:12:1 in text interpolation: | {f . "y"} |
↳ from test/tests/closure define nested.ans:12:1 in translatable: | {f . "y"} |
↳ from ? in block: :f = ($() _)…
--# saved #--
{}

View file

@ -0,0 +1,5 @@
--# run #--
--- return ---
"ok"
--# saved #--
{}

View file

@ -0,0 +1,11 @@
--# run #--
--- text ---
| {}"" {}"42" {}"" |
--- text ---
| {}"" {}"42" {}"" |
--- text ---
| {}"" {}"42" {}"" |
--- return ---
()
--# saved #--
{}

View file

@ -0,0 +1,7 @@
:f = ()
_
:action = "dramatic explosion"
f = $
1 + 1
f.action

View file

@ -0,0 +1,12 @@
:f = $
| kk
:y = $
()
y.:z = 12
| ko
f.:x = 42
|{f.x}
|{f.y}

View file

@ -0,0 +1,5 @@
:f = $
()
f.:x = "ok"
f.x

View file

@ -0,0 +1,9 @@
:f = $()()
f.:x = 42
|{f.x}
|{(f).x}
:z = "x"
|{(f).(z)}