Skip to content

Commit 4c17de6

Browse files
authored
Julia v1.6 support (#77)
1 parent 5e8cf76 commit 4c17de6

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ContinuumArrays"
22
uuid = "7ae1f121-cc2c-504b-ac30-9b923412ae5c"
3-
version = "0.5.0"
3+
version = "0.5.1"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

test/runtests.jl

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ end
9191
@test f[2.1] 2
9292

9393
@test @inferred(H'H) == @inferred(materialize(applied(*,H',H))) == Eye(2)
94-
@test summary(f) == "(Spline{0,Float64,Array{$Int,1}}) * (2-element Array{$Int,1})"
95-
@test stringmime("text/plain", f) == "Spline{0,Float64,Array{$Int,1}} * [1, 2]"
94+
if VERSION < v"1.6-"
95+
@test summary(f) == "(Spline{0,Float64,Array{$Int,1}}) * (2-element Array{$Int,1})"
96+
@test stringmime("text/plain", f) == "Spline{0,Float64,Array{$Int,1}} * [1, 2]"
97+
else
98+
@test summary(f) == "(HeavisideSpline{Float64, Vector{$Int}}) * (2-element Vector{$Int})"
99+
@test stringmime("text/plain", f) == "HeavisideSpline{Float64, Vector{$Int}} * [1, 2]"
100+
end
96101
end
97102

98103
@testset "LinearSpline" begin
@@ -404,7 +409,11 @@ end
404409
H = HeavisideSpline([1,2,3,6])
405410
B = H[5x .+ 1,:]
406411
u = H * [1,2,3]
407-
@test stringmime("text/plain", B) == "Spline{0,Float64,Array{Int64,1}} affine mapped to 0..1"
412+
if VERSION < v"1.6-"
413+
@test stringmime("text/plain", B) == "Spline{0,Float64,Array{$Int,1}} affine mapped to 0..1"
414+
else
415+
@test stringmime("text/plain", B) == "HeavisideSpline{Float64, Vector{$Int}} affine mapped to 0..1"
416+
end
408417
end
409418
end
410419

0 commit comments

Comments
 (0)