librustc: Convert all uses of assert
over to fail_unless!
This commit is contained in:
parent
0ea031bcb8
commit
d7e74b5e91
817 changed files with 6378 additions and 6335 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue