@@ -415,14 +415,16 @@ end
415
415
@test repr (- NaN ) == " NaN"
416
416
@test repr (Float64 (pi )) == " 3.141592653589793"
417
417
# issue 6608
418
- @test sprint (show, 666666.6 , context= :compact => true ) == " 666667.0 "
418
+ @test sprint (show, 666666.6 , context= :compact => true ) == " 6.66667e5 "
419
419
@test sprint (show, 666666.049 , context= :compact => true ) == " 666666.0"
420
420
@test sprint (show, 666665.951 , context= :compact => true ) == " 666666.0"
421
421
@test sprint (show, 66.66666 , context= :compact => true ) == " 66.6667"
422
- @test sprint (show, - 666666.6 , context= :compact => true ) == " -666667.0 "
422
+ @test sprint (show, - 666666.6 , context= :compact => true ) == " -6.66667e5 "
423
423
@test sprint (show, - 666666.049 , context= :compact => true ) == " -666666.0"
424
424
@test sprint (show, - 666665.951 , context= :compact => true ) == " -666666.0"
425
425
@test sprint (show, - 66.66666 , context= :compact => true ) == " -66.6667"
426
+ @test sprint (show, - 498796.2749933266 , context= :compact => true ) == " -4.98796e5"
427
+ @test sprint (show, 123456.78 , context= :compact => true ) == " 1.23457e5"
426
428
427
429
@test repr (1.0f0 ) == " 1.0f0"
428
430
@test repr (- 1.0f0 ) == " -1.0f0"
0 commit comments