You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@testsummary(itp) =="8×20 interpolate(::Array{Float64,2}, BSpline(Quadratic(InPlace(OnCell())))) with element type Float64"
31
+
@testsummary(itp) =="8×20 interpolate(::Matrix{Float64}, BSpline(Quadratic(InPlace(OnCell())))) with element type Float64"||
32
+
summary(itp) =="8×20 interpolate(::Array{Float64,2}, BSpline(Quadratic(InPlace(OnCell())))) with element type Float64"
27
33
end
28
34
29
35
@testset"Gridded"begin
30
36
A =rand(20)
31
37
A_x =collect(1.0:2.0:40.0)
32
38
knots = (A_x,)
33
39
itp =interpolate(knots, A, Gridded(Linear()))
34
-
@testsummary(itp) =="20-element interpolate((::Array{Float64,1},), ::Array{Float64,1}, Gridded(Linear())) with element type Float64"
40
+
@testsummary(itp) =="20-element interpolate((::Vector{Float64},), ::Vector{Float64}, Gridded(Linear())) with element type Float64"||
41
+
summary(itp) =="20-element interpolate((::Array{Float64,1},), ::Array{Float64,1}, Gridded(Linear())) with element type Float64"
35
42
36
43
A =rand(8,20)
37
44
knots = ([x^2for x =1:8], [0.2y for y =1:20])
38
45
itp =interpolate(knots, A, Gridded(Linear()))
39
-
@testsummary(itp) =="8×20 interpolate((::Array{Int64,1},::Array{Float64,1}), ::Array{Float64,2}, Gridded(Linear())) with element type Float64"
46
+
@testsummary(itp) =="8×20 interpolate((::Vector{Int64},::Vector{Float64}), ::Matrix{Float64}, Gridded(Linear())) with element type Float64"||
47
+
summary(itp) =="8×20 interpolate((::Array{Int64,1},::Array{Float64,1}), ::Array{Float64,2}, Gridded(Linear())) with element type Float64"
40
48
41
49
itp =interpolate(knots, A, (Gridded(Linear()),Gridded(Constant())))
42
-
@testsummary(itp) =="8×20 interpolate((::Array{Int64,1},::Array{Float64,1}), ::Array{Float64,2}, (Gridded(Linear()), Gridded(Constant()))) with element type Float64"
50
+
@testsummary(itp) =="8×20 interpolate((::Vector{Int64},::Vector{Float64}), ::Matrix{Float64}, (Gridded(Linear()), Gridded(Constant()))) with element type Float64"||
51
+
summary(itp) =="8×20 interpolate((::Array{Int64,1},::Array{Float64,1}), ::Array{Float64,2}, (Gridded(Linear()), Gridded(Constant()))) with element type Float64"
43
52
44
53
# issue #260
45
54
A = (1:4)/4
@@ -48,26 +57,33 @@ using Test
48
57
show(io, MIME("text/plain"), itp)
49
58
str1 =String(take!(io))
50
59
str2 ="4-element interpolate((0.0:0.1:0.3,), ::Array{Float64,1}, Gridded(Linear())) with element type Float64:\n 0.25\n 0.5 \n 0.75\n 1.0"
teststring ="21×41 scale(interpolate(OffsetArray(::Array{Float64,2}, 0:22, 0:42), BSpline(Quadratic(Flat(OnGrid())))), (-5.0:0.5:5.0,$SPACE-4.0:0.2:4.0)) with element type Float64"
80
-
@testsummary(sitp2) == teststring
96
+
teststring2 ="21×41 scale(interpolate(OffsetArray(::Matrix{Float64}, 0:22, 0:42), BSpline(Quadratic(Flat(OnGrid())))), (-5.0:0.5:5.0,$SPACE-4.0:0.2:4.0)) with element type Float64"
0 commit comments