This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
compilation/flap/tests/02-Interpreter/64-for-03.eval.hopix.human-readable
2023-10-25 15:16:53 +02:00

13 lines
No EOL
304 B
Text

let test =
let r = ref 1;
for i from (1) to (5) {
for i from (1) to (5) {
r := !r * i
};
r := !r * i;
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" })