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 14212347835..b2bbfcaf9a5 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} }; - fail_unless!((rs.i == 100)); + assert!((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 }; - fail_unless!((rs == happy)); + assert!((rs == happy)); } pub fn main() { test_rec(); test_tag(); } | 
