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

@ -29,7 +29,7 @@ pure fn mi(v: int) -> MyInt { MyInt { val: v } }
pub fn main() {
let (x, y, z) = (mi(3), mi(5), mi(3));
assert x != y;
assert x == z;
fail_unless!(x != y);
fail_unless!(x == z);
}