aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/expr-if-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/expr-if-struct.rs')
-rw-r--r--src/test/run-pass/expr-if-struct.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/expr-if-struct.rs b/src/test/run-pass/expr-if-struct.rs
index df20a3ba..6d42c224 100644
--- a/src/test/run-pass/expr-if-struct.rs
+++ b/src/test/run-pass/expr-if-struct.rs
@@ -5,7 +5,7 @@
fn test_rec() {
auto res = if (true) { rec(i = 100) } else { rec(i = 101) };
- check (res == rec(i = 100));
+ assert (res == rec(i = 100));
}
fn test_tag() {
@@ -15,7 +15,7 @@ fn test_tag() {
}
auto res = if (true) { happy } else { sad };
- check (res == happy);
+ assert (res == happy);
}
fn main() {