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
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue