diff options
Diffstat (limited to 'src/test/run-pass/expr-if-struct.rs')
| -rw-r--r-- | src/test/run-pass/expr-if-struct.rs | 4 |
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 ea0bd768438..d37a67d922e 100644 --- a/src/test/run-pass/expr-if-struct.rs +++ b/src/test/run-pass/expr-if-struct.rs @@ -19,7 +19,7 @@ struct I { i: int } fn test_rec() { let rs = if true { I {i: 100} } else { I {i: 101} }; - assert (rs.i == 100); + fail_unless!((rs.i == 100)); } enum mood { happy, sad, } @@ -33,7 +33,7 @@ impl cmp::Eq for mood { fn test_tag() { let rs = if true { happy } else { sad }; - assert (rs == happy); + fail_unless!((rs == happy)); } pub fn main() { test_rec(); test_tag(); } |
