mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Fourth test batch
This commit is contained in:
parent
d928ff5598
commit
0a835a65d8
8 changed files with 65 additions and 0 deletions
7
test/tests/closure access upvalue.ans
Normal file
7
test/tests/closure access upvalue.ans
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
:f = ()
|
||||
_
|
||||
:action = "dramatic explosion"
|
||||
f = $
|
||||
1 + 1
|
||||
|
||||
f.action
|
||||
12
test/tests/closure define nested.ans
Normal file
12
test/tests/closure define nested.ans
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
:f = $
|
||||
| kk
|
||||
:y = $
|
||||
()
|
||||
y.:z = 12
|
||||
| ko
|
||||
|
||||
f.:x = 42
|
||||
|
||||
|{f.x}
|
||||
|
||||
|{f.y}
|
||||
5
test/tests/closure define.ans
Normal file
5
test/tests/closure define.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
:f = $
|
||||
()
|
||||
f.:x = "ok"
|
||||
|
||||
f.x
|
||||
9
test/tests/index identifier.ans
Normal file
9
test/tests/index identifier.ans
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
:f = $()()
|
||||
f.:x = 42
|
||||
|
||||
|{f.x}
|
||||
|
||||
|{(f).x}
|
||||
|
||||
:z = "x"
|
||||
|{(f).(z)}
|
||||
Loading…
Add table
Add a link
Reference in a new issue