summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-05-10 14:58:42 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-05-10 14:58:42 -0400
commitfcf0174ce10900f7f5ed6547382e0912d6a291b3 (patch)
tree433830b47945f256052566ed640afe6e2de3f632 /tests
parent10aea299fe118d852962e71f1a0e6a23b6105562 (diff)
fixed that namespace problem
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);