@@ -914,22 +914,22 @@ where
914914 ) ;
915915
916916 // very large output
917- assert_eq ! ( to_string( f, 0.0 , Minus , 80000 , false ) , format!( "0.{:0>79999 }e0" , "" ) ) ;
918- assert_eq ! ( to_string( f, 1.0e1 , Minus , 80000 , false ) , format!( "1.{:0>79999 }e1" , "" ) ) ;
919- assert_eq ! ( to_string( f, 1.0e0 , Minus , 80000 , false ) , format!( "1.{:0>79999 }e0" , "" ) ) ;
917+ assert_eq ! ( to_string( f, 0.0 , Minus , 50000 , false ) , format!( "0.{:0>49999 }e0" , "" ) ) ;
918+ assert_eq ! ( to_string( f, 1.0e1 , Minus , 50000 , false ) , format!( "1.{:0>49999 }e1" , "" ) ) ;
919+ assert_eq ! ( to_string( f, 1.0e0 , Minus , 50000 , false ) , format!( "1.{:0>49999 }e0" , "" ) ) ;
920920 assert_eq ! (
921- to_string( f, 1.0e-1 , Minus , 80000 , false ) ,
921+ to_string( f, 1.0e-1 , Minus , 50000 , false ) ,
922922 format!(
923- "1.000000000000000055511151231257827021181583404541015625{:0>79945 }\
923+ "1.000000000000000055511151231257827021181583404541015625{:0>49945 }\
924924 e-1",
925925 ""
926926 )
927927 ) ;
928928 assert_eq ! (
929- to_string( f, 1.0e-20 , Minus , 80000 , false ) ,
929+ to_string( f, 1.0e-20 , Minus , 50000 , false ) ,
930930 format!(
931931 "9.999999999999999451532714542095716517295037027873924471077157760\
932- 66783064379706047475337982177734375{:0>79901 }e-21",
932+ 66783064379706047475337982177734375{:0>49901 }e-21",
933933 ""
934934 )
935935 ) ;
@@ -1150,18 +1150,18 @@ where
11501150 ) ;
11511151
11521152 // very large output
1153- assert_eq ! ( to_string( f, 0.0 , Minus , 80000 ) , format!( "0.{:0>80000 }" , "" ) ) ;
1154- assert_eq ! ( to_string( f, 1.0e1 , Minus , 80000 ) , format!( "10.{:0>80000 }" , "" ) ) ;
1155- assert_eq ! ( to_string( f, 1.0e0 , Minus , 80000 ) , format!( "1.{:0>80000 }" , "" ) ) ;
1153+ assert_eq ! ( to_string( f, 0.0 , Minus , 50000 ) , format!( "0.{:0>50000 }" , "" ) ) ;
1154+ assert_eq ! ( to_string( f, 1.0e1 , Minus , 50000 ) , format!( "10.{:0>50000 }" , "" ) ) ;
1155+ assert_eq ! ( to_string( f, 1.0e0 , Minus , 50000 ) , format!( "1.{:0>50000 }" , "" ) ) ;
11561156 assert_eq ! (
1157- to_string( f, 1.0e-1 , Minus , 80000 ) ,
1158- format!( "0.1000000000000000055511151231257827021181583404541015625{:0>79945 }" , "" )
1157+ to_string( f, 1.0e-1 , Minus , 50000 ) ,
1158+ format!( "0.1000000000000000055511151231257827021181583404541015625{:0>49945 }" , "" )
11591159 ) ;
11601160 assert_eq ! (
1161- to_string( f, 1.0e-20 , Minus , 80000 ) ,
1161+ to_string( f, 1.0e-20 , Minus , 50000 ) ,
11621162 format!(
11631163 "0.0000000000000000000099999999999999994515327145420957165172950370\
1164- 2787392447107715776066783064379706047475337982177734375{:0>79881 }",
1164+ 2787392447107715776066783064379706047475337982177734375{:0>49881 }",
11651165 ""
11661166 )
11671167 ) ;
0 commit comments