From 7d408d6a0d86158531d43598c06770fa47e9340b Mon Sep 17 00:00:00 2001 From: David Peter Date: Mon, 5 Oct 2026 14:20:36 +0200 Subject: [PATCH] Add test --- src/quantity/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/quantity/mod.rs b/src/quantity/mod.rs index 4f7ed67..f5a2109 100644 --- a/src/quantity/mod.rs +++ b/src/quantity/mod.rs @@ -183,11 +183,16 @@ fn test_time() { #[test] fn test_information() { + use uom::si::information::pebibyte; + let information = Information::new::(8.); assert_eq!(information.get::(), 8192.); let information_kib = information.get::(); assert_eq!(information_kib, 8.); + + let largest_exactly_representable = Information::new::(9_007_199_254_740_992.); + assert_eq!(largest_exactly_representable.get::(), 8.); } #[test]