This commit is contained in:
kageru 2020-05-15 20:28:50 +02:00
parent 4831298a9b
commit 9d6482204d
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

@ -193,13 +193,13 @@ mod tests {
.iter()
.zip(EXPECTED_MASK_02.iter())
.for_each(|(&x, &exp)| {
assert!(get_mask_value(x, 0.2, 10.0) - exp < 0.0001);
assert!((get_mask_value(x, 0.2, 10.0) - exp).abs() < 0.0001);
});
FLOAT_RANGE
.iter()
.zip(EXPECTED_MASK_08.iter())
.for_each(|(&x, &exp)| {
assert!(get_mask_value(x, 0.8, 10.0) - exp < 0.0001);
assert!((get_mask_value(x, 0.8, 10.0) - exp).abs() < 0.0001);
});
}
}