mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-28 09:09: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
21
test/tests/function definition.ans
Normal file
21
test/tests/function definition.ans
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
:f = $(x)x*x
|
||||
|
||||
:$g(x)
|
||||
@x*x
|
||||
|
||||
|{f(5)} = {g(5)}
|
||||
|
||||
|{f(2)} = {g(2)}
|
||||
|
||||
:y = 5
|
||||
:h = $(x)x*x+y
|
||||
|
||||
| {h(3)} == 14
|
||||
|
||||
y = 7
|
||||
|
||||
| {h(5)} == 32
|
||||
|
||||
:i = $y*y
|
||||
|
||||
| {i!} == 49
|
||||
Loading…
Add table
Add a link
Reference in a new issue