summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/control_flow.toc2
-rw-r--r--tests/defer.toc2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/control_flow.toc b/tests/control_flow.toc
index 043d4b7..f54a8bc 100644
--- a/tests/control_flow.toc
+++ b/tests/control_flow.toc
@@ -8,7 +8,7 @@ f ::= fn() int {
if i == 7 { break; }
}
i := 0;
- while {
+ while true {
i += 1;
total += i;
if i == 10 {
diff --git a/tests/defer.toc b/tests/defer.toc
index ec06a19..07ef9f7 100644
--- a/tests/defer.toc
+++ b/tests/defer.toc
@@ -50,7 +50,7 @@ main ::= fn() {
}
}
i := 0;
- while {
+ while true {
defer io.puts("deferred from while");
i += 1;
io.puti(i);