about summary refs log tree commit diff
path: root/src/test/run-pass/expr-if-struct.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-28 18:39:09 -0700
committerBrian Anderson <banderson@mozilla.com>2013-03-29 16:39:08 -0700
commit1e91595520d0538e6003dc9186f1b0df5c25b77a (patch)
tree8199ebdfbabc8b0a537f7b9330716e3b9c71714a /src/test/run-pass/expr-if-struct.rs
parenta17a9d41f6bf06daacb0aedb0cb2144dc4ba1c53 (diff)
downloadrust-1e91595520d0538e6003dc9186f1b0df5c25b77a.tar.gz
rust-1e91595520d0538e6003dc9186f1b0df5c25b77a.zip
librustc: Remove `fail_unless!`
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 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(); }