13 lines
No EOL
255 B
Text
13 lines
No EOL
255 B
Text
let test =
|
|
let x = ref 5;
|
|
let y = ref 0;
|
|
let z = ref 5;
|
|
while (!x <? 0) {
|
|
x := !x - 1;
|
|
y := !y + 1
|
|
};
|
|
if (!x =? 5) then {
|
|
print_string ("This test is OK!\n")
|
|
} else {
|
|
print_string ("This is KO!\n")
|
|
} |