mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Added missing test
This commit is contained in:
parent
efea4901ef
commit
fa73744c36
3 changed files with 12 additions and 0 deletions
2
regression/orig/test063.log
Normal file
2
regression/orig/test063.log
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
> 100
|
||||||
|
200
|
||||||
9
regression/test063.expr
Normal file
9
regression/test063.expr
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
fun traverse (l) {
|
||||||
|
case l of
|
||||||
|
{} -> skip
|
||||||
|
| (f@#fun) : tl -> f (); traverse (tl)
|
||||||
|
| _ : tl -> traverse (tl)
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
traverse ({1, fun () write(100), 2, 3, 4, 5, fun () write (200), 6, 7})
|
||||||
1
regression/test063.input
Normal file
1
regression/test063.input
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
5
|
||||||
Loading…
Add table
Add a link
Reference in a new issue