Skip to content

Commit

Permalink
test(interpolation_tests): update tests for Matrix LinearInterpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh-b-b committed Sep 24, 2024
1 parent 9530aa6 commit ce28c4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/interpolation_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ end
A = LinearInterpolation(u, t; extrapolate = true)

for (_t, _u) in zip(t, eachcol(u))
@test A(_t) == _u
@test A(_t) == reshape(_u, : , 1)
end
@test A(0) == [0.0, 0.0]
@test A(5.5) == [11.0, 16.5]
@test A(11) == [22, 33]
@test A(0) == [0.0; 0.0;;]
@test A(5.5) == [11.0; 16.5;;]
@test A(11) == [22; 33;;]

x = 1:10
y = 2:4
Expand Down

0 comments on commit ce28c4b

Please sign in to comment.