From ce28c4b6c4ca6b6c764ea64e26cd6f7d88e2b145 Mon Sep 17 00:00:00 2001 From: Ashutosh Bharambe Date: Tue, 24 Sep 2024 09:15:15 +0000 Subject: [PATCH] test(interpolation_tests): update tests for `Matrix` LinearInterpolation --- test/interpolation_tests.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/interpolation_tests.jl b/test/interpolation_tests.jl index 3ebc1741..38c424de 100644 --- a/test/interpolation_tests.jl +++ b/test/interpolation_tests.jl @@ -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