#[should_fail] -> #[should_panic]
This commit is contained in:
parent
7b9a9aac69
commit
241441a650
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ fn macro_assert_approx_eq_eps() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[should_fail]
|
||||
#[should_panic]
|
||||
fn macro_assert_approx_eq_eps_fail() {
|
||||
assert_approx_eq_eps!(1.0f32, 1.02, 0.01);
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ fn macro_assert_approx_eq() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[should_fail]
|
||||
#[should_panic]
|
||||
fn macro_assert_approx_eq_fail() {
|
||||
assert_approx_eq!(1.0f64 / 3.0, 0.333);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue