1
Fork 0

librustc: Convert all uses of assert over to fail_unless!

This commit is contained in:
Patrick Walton 2013-03-06 13:58:02 -08:00
parent 0ea031bcb8
commit d7e74b5e91
817 changed files with 6378 additions and 6335 deletions

View file

@ -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(); }