mirror of
https://github.com/ProgramSnail/Lama.git
synced 2026-01-01 03:28:19 +00:00
Moved x86only tests into stdlib/regression
This commit is contained in:
parent
e4b34a3ec1
commit
eeab48ed33
39 changed files with 10 additions and 59 deletions
15
stdlib/regression/test23.lama
Normal file
15
stdlib/regression/test23.lama
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
fun hd (l) {
|
||||
case l of
|
||||
h : _ -> return h
|
||||
esac
|
||||
}
|
||||
|
||||
fun tl (l) {
|
||||
case l of
|
||||
_ : t -> return t
|
||||
esac
|
||||
}
|
||||
|
||||
printf ("%s\n", {1, 2, 3}.hd.string);
|
||||
printf ("%s\n", {1, 2, 3, 4}.tl.string);
|
||||
printf ("%s\n", {1, {2, 3, 4}, 5, 6}.tl.hd.hd.string)
|
||||
Loading…
Add table
Add a link
Reference in a new issue