core: convert asserts to fail_unless!

This commit is contained in:
Jeff Olson 2013-03-08 16:06:05 -08:00 committed by Brian Anderson
parent 5ff66f0405
commit 3aa92a91c9
2 changed files with 5 additions and 5 deletions

View File

@ -222,7 +222,7 @@ pub fn env() -> ~[(~str,~str)] {
log(debug,
fmt!("splitting: len: %u",
vs.len()));
assert vs.len() == 2;
fail_unless!(vs.len() == 2);
pairs.push((copy vs[0], copy vs[1]));
}
pairs

View File

@ -463,11 +463,11 @@ pub mod ptr_tests {
log(debug,
fmt!("test_ptr_array_each e: %s, a: %s",
expected, actual));
assert actual == expected;
fail_unless!(actual == expected);
ctr += 1;
iteration_count += 1;
});
assert iteration_count == 3u;
fail_unless!(iteration_count == 3u);
}
}
#[test]
@ -495,11 +495,11 @@ pub mod ptr_tests {
log(debug,
fmt!("test_ptr_array_each e: %s, a: %s",
expected, actual));
assert actual == expected;
fail_unless!(actual == expected);
ctr += 1;
iteration_count += 1;
});
assert iteration_count == 3;
fail_unless!(iteration_count == 3);
}
}
#[test]