aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/break.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/break.rs')
-rw-r--r--src/test/run-pass/break.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/run-pass/break.rs b/src/test/run-pass/break.rs
index 48c3b091..5a63d9ac 100644
--- a/src/test/run-pass/break.rs
+++ b/src/test/run-pass/break.rs
@@ -6,35 +6,35 @@ fn main() {
i += 1;
if (i == 10) { break; }
}
- check(i == 10);
+ assert (i == 10);
do {
i += 1;
if (i == 20) { break; }
} while (i < 30);
- check(i == 20);
+ assert (i == 20);
for (int x in vec(1, 2, 3, 4, 5, 6)) {
if (x == 3) { break; }
- check(x <= 3);
+ assert (x <= 3);
}
i = 0;
while (i < 10) {
i += 1;
if (i % 2 == 0) { cont; }
- check(i % 2 != 0);
+ assert (i % 2 != 0);
}
i = 0;
do {
i += 1;
if (i % 2 == 0) { cont; }
- check(i % 2 != 0);
+ assert (i % 2 != 0);
} while (i < 10);
for (int x in vec(1, 2, 3, 4, 5, 6)) {
if (x % 2 == 0) { cont; }
- check(x % 2 != 0);
+ assert (x % 2 != 0);
}
}