Uncommented interpretation tests

This commit is contained in:
Roman Venediktov 2024-07-01 12:48:21 +02:00
parent 74e007c2ec
commit d1b1e04a40
5 changed files with 10 additions and 7 deletions

View file

@ -1,3 +1,5 @@
var n;
fun sum (l) {
case l of
{} -> 0
@ -21,6 +23,7 @@ fun array_to_list (a) {
l
}
n := read ();
write (sum ({}));
write (sum ({1, 2, 3, 4, 5}));
write (sum (1:2:3:4:5:{}));