Upstream magiclen/byte-unit state of the touched files before 4d115cc977

This commit is contained in:
upstream committed 2026-09-04 09:45:03 +02:00
1 parent 2219c475f1
commit 85f79fa753
2 files changed
+2 -24

No files matched your search

-10
View File
@@ -170,13 +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 are "too large" and must return None instead of
// panicking, consistently across the `std` and `no_std` 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);
}