Skip to content

Commit 4ab1352

Browse files
adjust for removed GRISU
1 parent 1331c7f commit 4ab1352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/legacy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if VERSION < v"1.1"
55
@test Base.Printf.fix_dec(Double64(-12.34567), 10) == (7, 2, true)
66
@test Base.Printf.ini_dec(Double64(0.1234567), 3) == (3, 0, false)
77
@test Base.Printf.ini_dec(Double64(-1234.567), 10) == (10, 4, true)
8-
else
8+
elseif VERSION < v"1.5"
99
digits = Base.Grisu.getbuf()
1010
@test Printf.fix_dec(Double64(123.4567), 2, digits) == (5, 3, false)
1111
@test Printf.fix_dec(Double64(-12.34567), 10, digits) == (7, 2, true)

0 commit comments

Comments
 (0)