Skip to content

Commit 47a4e33

Browse files
Merge pull request #228 from araujoms/1.1
drop support for pre-1.6 julia
2 parents 9ead53a + 50eaf0c commit 47a4e33

4 files changed

Lines changed: 11 additions & 40 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Quadmath = "0.5.10, 0.6, 0.7, 0.8"
2222
Requires = "1"
2323
SpecialFunctions = "1.0, 1.1, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5"
2424
GenericLinearAlgebra = "0.2.5, 0.3, 0.4, 0.5, 0.6"
25-
julia = "1"
25+
julia = "1.6"
2626

2727
[extras]
2828
GenericLinearAlgebra = "14197337-ba66-59df-a3e3-ca00e7dcff7a"

src/type/show.jl

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,9 @@ showall(x::DoubleFloat{T}) where {T<:IEEEFloat} = print(Base.stdout, string(x))
4747
showall(x::Complex{DoubleFloat{T}}) where {T<:IEEEFloat} = print(Base.stdout, string(x))
4848

4949

50-
if VERSION < v"1.1"
51-
fix_dec(x::Double64, n::Int) = fix_dec(Float64(x), n)
52-
fix_dec(x::Double32, n::Int) = fix_dec(Float64(x), n)
53-
fix_dec(x::Double16, n::Int) = fix_dec(Float32(x), n)
54-
ini_dec(x::Double64, n::Int) = ini_dec(Float64(x), n)
55-
ini_dec(x::Double32, n::Int) = ini_dec(Float64(x), n)
56-
ini_dec(x::Double16, n::Int) = ini_dec(Float32(x), n)
57-
else
58-
fix_dec(x::Double64, n::Int, digits) = fix_dec(Float64(x), n, digits)
59-
fix_dec(x::Double32, n::Int, digits) = fix_dec(Float64(x), n, digits)
60-
fix_dec(x::Double16, n::Int, digits) = fix_dec(Float32(x), n, digits)
61-
ini_dec(x::Double64, n::Int, digits) = ini_dec(Float64(x), n, digits)
62-
ini_dec(x::Double32, n::Int, digits) = ini_dec(Float64(x), n, digits)
63-
ini_dec(x::Double16, n::Int, digits) = ini_dec(Float32(x), n, digits)
64-
end
50+
fix_dec(x::Double64, n::Int, digits) = fix_dec(Float64(x), n, digits)
51+
fix_dec(x::Double32, n::Int, digits) = fix_dec(Float64(x), n, digits)
52+
fix_dec(x::Double16, n::Int, digits) = fix_dec(Float32(x), n, digits)
53+
ini_dec(x::Double64, n::Int, digits) = ini_dec(Float64(x), n, digits)
54+
ini_dec(x::Double32, n::Int, digits) = ini_dec(Float64(x), n, digits)
55+
ini_dec(x::Double16, n::Int, digits) = ini_dec(Float32(x), n, digits)

test/legacy.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
@testset "legacy" begin
22

3-
if VERSION < v"1.1"
4-
@test Base.Printf.fix_dec(Double64(123.4567), 2) == (5, 3, false)
5-
@test Base.Printf.fix_dec(Double64(-12.34567), 10) == (7, 2, true)
6-
@test Base.Printf.ini_dec(Double64(0.1234567), 3) == (3, 0, false)
7-
@test Base.Printf.ini_dec(Double64(-1234.567), 10) == (10, 4, true)
8-
elseif VERSION < v"1.5"
9-
digits = Base.Grisu.getbuf()
10-
@test Printf.fix_dec(Double64(123.4567), 2, digits) == (5, 3, false)
11-
@test Printf.fix_dec(Double64(-12.34567), 10, digits) == (7, 2, true)
12-
@test Printf.ini_dec(Double64(0.1234567), 3, digits) == (3, 0, false)
13-
@test Printf.ini_dec(Double64(-1234.567), 10, digits) == (10, 4, true)
14-
end
15-
163
@test @sprintf("%f", Double64(3)) == "3.000000"
174

185
end

test/linearalgebra.jl

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@ using GenericLinearAlgebra, GenericSchur
44
@test issquare(reshape(rand(Double32,3*3), 3, 3))
55

66
# issue #77
7-
if VERSION < v"1.1"
8-
M = Double64.([1 0; 1 1])
9-
@test_throws AssertionError exp(M)
10-
M = Complex{Double64}.([1 0; 1 1])
11-
@test_throws AssertionError exp(M)
12-
else
13-
M = Double64.([1 0; 1 1])
14-
@test_throws ErrorException exp(M)
15-
M = Complex{Double64}.([1 0; 1 1])
16-
@test_throws ErrorException exp(M)
17-
end
7+
M = Double64.([1 0; 1 1])
8+
@test_throws ErrorException exp(M)
9+
M = Complex{Double64}.([1 0; 1 1])
10+
@test_throws ErrorException exp(M)
1811

1912
t=[Complex{Double64}(1.0,0.0) Complex{Double64}(0.0,1.0);
2013
Complex{Double64}(0.0,-1.0) Complex{Double64}(1.0,0.0)]

0 commit comments

Comments
 (0)