Upstream magiclen/byte-unit state of the touched files before e84be64ee4
This commit is contained in:
1 parent
ec58c32a8a
commit
542a618c5d
2 files changed
+2
-21
No files matched your search
@@ -170,12 +170,3 @@ fn tests() {
|
||||
assert_eq!(byte, serde_json::from_str::<Byte>(case.0).unwrap(), "{i}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn from_non_finite_returns_none() {
|
||||
// Non-finite inputs must return None instead of panicking, in both builds.
|
||||
assert_eq!(Byte::from_f64(f64::INFINITY), None);
|
||||
assert_eq!(Byte::from_f64(f64::NAN), None);
|
||||
assert_eq!(Byte::from_f32(f32::INFINITY), None);
|
||||
assert_eq!(Byte::from_f32(f32::NAN), None);
|
||||
}
|
||||
Reference in new issue
Block a user