mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 10:07:30 +00:00
core: convert asserts to fail_unless!
This commit is contained in:
parent
5ff66f0405
commit
3aa92a91c9
@ -222,7 +222,7 @@ pub fn env() -> ~[(~str,~str)] {
|
|||||||
log(debug,
|
log(debug,
|
||||||
fmt!("splitting: len: %u",
|
fmt!("splitting: len: %u",
|
||||||
vs.len()));
|
vs.len()));
|
||||||
assert vs.len() == 2;
|
fail_unless!(vs.len() == 2);
|
||||||
pairs.push((copy vs[0], copy vs[1]));
|
pairs.push((copy vs[0], copy vs[1]));
|
||||||
}
|
}
|
||||||
pairs
|
pairs
|
||||||
|
@ -463,11 +463,11 @@ pub mod ptr_tests {
|
|||||||
log(debug,
|
log(debug,
|
||||||
fmt!("test_ptr_array_each e: %s, a: %s",
|
fmt!("test_ptr_array_each e: %s, a: %s",
|
||||||
expected, actual));
|
expected, actual));
|
||||||
assert actual == expected;
|
fail_unless!(actual == expected);
|
||||||
ctr += 1;
|
ctr += 1;
|
||||||
iteration_count += 1;
|
iteration_count += 1;
|
||||||
});
|
});
|
||||||
assert iteration_count == 3u;
|
fail_unless!(iteration_count == 3u);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
@ -495,11 +495,11 @@ pub mod ptr_tests {
|
|||||||
log(debug,
|
log(debug,
|
||||||
fmt!("test_ptr_array_each e: %s, a: %s",
|
fmt!("test_ptr_array_each e: %s, a: %s",
|
||||||
expected, actual));
|
expected, actual));
|
||||||
assert actual == expected;
|
fail_unless!(actual == expected);
|
||||||
ctr += 1;
|
ctr += 1;
|
||||||
iteration_count += 1;
|
iteration_count += 1;
|
||||||
});
|
});
|
||||||
assert iteration_count == 3;
|
fail_unless!(iteration_count == 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user