7 lines
186 B
Text
7 lines
186 B
Text
|
let test =
|
||
|
let r = ref 1;
|
||
|
for i from (1) to (5) {
|
||
|
r := !r * i
|
||
|
};
|
||
|
print_string ("This test is ");
|
||
|
print_string (if (!r =? 120) then { "OK!\n" } else { "KO!\n" })
|