mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-11 17:33:30 +00:00
Merge pull request #6 from XJIE6/post-historic
test for issue #3, closes #3
This commit is contained in:
commit
4f0dbf3399
3 changed files with 10 additions and 0 deletions
2
regression/orig/test055.log
Normal file
2
regression/orig/test055.log
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
0
|
||||||
|
3
|
||||||
8
regression/test055.expr
Normal file
8
regression/test055.expr
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
fun len(l) {
|
||||||
|
case l of
|
||||||
|
_ : xs -> return len(xs) + 1
|
||||||
|
|{} -> return 0
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
write(len({}));
|
||||||
|
write(len({1, 2, 3}))
|
||||||
0
regression/test055.input
Normal file
0
regression/test055.input
Normal file
Loading…
Add table
Add a link
Reference in a new issue