|
91 | 91 | @test f[2.1] ≈ 2
|
92 | 92 |
|
93 | 93 | @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 |
96 | 101 | end
|
97 | 102 |
|
98 | 103 | @testset "LinearSpline" begin
|
|
404 | 409 | H = HeavisideSpline([1,2,3,6])
|
405 | 410 | B = H[5x .+ 1,:]
|
406 | 411 | 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 |
408 | 417 | end
|
409 | 418 | end
|
410 | 419 |
|
|
0 commit comments