mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
test for issue #3
This commit is contained in:
parent
99f6357ccd
commit
25e1f55ecd
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