mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 00:59: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
22
test/tests/function assignement.ans
Normal file
22
test/tests/function assignement.ans
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
:a = 5
|
||||
|
||||
:$ f(p)
|
||||
@a
|
||||
|
||||
:$ f(p) = v
|
||||
|v={v}
|
||||
a = v
|
||||
|
||||
:$ f(p) = v::string
|
||||
|v2={v}
|
||||
a = p
|
||||
|
||||
|{f(a)}
|
||||
|
||||
f(3) = 50
|
||||
|
||||
|{f(a)}
|
||||
|
||||
f(3) = "ok"
|
||||
|
||||
|{f(a)}
|
||||
Loading…
Add table
Add a link
Reference in a new issue