We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cb6de6 commit 109174bCopy full SHA for 109174b
test/interpolation_tests.jl
@@ -525,6 +525,13 @@ end
525
itp = ConstantInterpolation([2], [0.0]; extrapolation = ExtrapolationType.Constant)
526
@test itp(1.0) === 2
527
@test itp(-1.0) === 2
528
+
529
+ # Test output type of vector evaluation (issue #388)
530
+ u = [2, 3]
531
+ t = [0.0, 1.0]
532
+ itp = ConstantInterpolation(u, t)
533
+ @test @inferred(itp(t)) == itp.(t)
534
+ @test typeof(itp(t)) === typeof(itp.(t)) === Vector{Int}
535
end
536
537
@testset "QuadraticSpline Interpolation" begin
0 commit comments