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

@ -42,8 +42,8 @@ pure fn mi(v: int) -> MyInt { MyInt { val: v } }
pub fn main() {
let (x, y) = (mi(3), mi(5));
let (a, b, c) = f(x, y);
assert a == mi(8);
assert b == mi(-2);
assert c == mi(15);
fail_unless!(a == mi(8));
fail_unless!(b == mi(-2));
fail_unless!(c == mi(15));
}