mirror of
https://codeberg.org/ProgramSnail/truffle-lama.git
synced 2026-01-07 20:25:03 +00:00
add (copy) regression lama tests
This commit is contained in:
parent
91505d247b
commit
30a0b63ba5
240 changed files with 1904 additions and 0 deletions
16
src/test/lama/test013.lama
Normal file
16
src/test/lama/test013.lama
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
var n = read ();
|
||||
|
||||
do
|
||||
|
||||
if n == 1 then write (0)
|
||||
elif n == 2 then write (1)
|
||||
elif n == 3 then write (2)
|
||||
elif n == 4 then write (3)
|
||||
else write (10)
|
||||
fi;
|
||||
|
||||
if n >= 5 then write (11) fi;
|
||||
|
||||
n := n - 1
|
||||
|
||||
while n != 0 od
|
||||
Loading…
Add table
Add a link
Reference in a new issue