mirror of
https://github.com/ProgramSnail/Lama.git
synced 2026-01-02 03:58:18 +00:00
Added tests; weird & ugly workaround in the parser
This commit is contained in:
parent
d69cb3d49d
commit
39388d77fd
13 changed files with 108 additions and 10 deletions
12
regression/test057.expr
Normal file
12
regression/test057.expr
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
fun a (x) {return x + 1}
|
||||
fun b (x) {return x + 2}
|
||||
fun c (x) {return x + 3}
|
||||
|
||||
{
|
||||
local funs = [a, b, c];
|
||||
local n = read (), i;
|
||||
|
||||
for i := 0, i < 3, i := i+1 do
|
||||
write (funs[i] (n))
|
||||
od
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue