From 5478ca91080a039a834004ad0f5014fe07f19c24 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sat, 8 Aug 2020 23:18:43 -0500 Subject: [PATCH] tests ~ (sub-crate/od) fix expected f16 formatted test value --- src/uu/od/src/prn_float.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/od/src/prn_float.rs b/src/uu/od/src/prn_float.rs index f64763a1e..411bc9c10 100644 --- a/src/uu/od/src/prn_float.rs +++ b/src/uu/od/src/prn_float.rs @@ -211,7 +211,7 @@ fn test_format_flo16() { assert_eq!(format_flo16(f16::from_f32(-0.2)), " -0.2000"); assert_eq!(format_flo16(f16::from_f32(-0.02)), "-2.000e-2"); - assert_eq!(format_flo16(f16::MIN_POSITIVE_SUBNORMAL), " 5.966e-8"); + assert_eq!(format_flo16(f16::MIN_POSITIVE_SUBNORMAL), " 5.960e-8"); assert_eq!(format_flo16(f16::MIN), " -6.550e4"); assert_eq!(format_flo16(f16::NAN), " NaN"); assert_eq!(format_flo16(f16::INFINITY), " inf");