Skip to content

Commit

Permalink
test: add test for derivatives with two points
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Jul 23, 2024
1 parent 864c8a6 commit e1e6b05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/derivative_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ end
u = vcat(2.0collect(1:10)', 3.0collect(1:10)')
test_derivatives(
LinearInterpolation; args = [u, t], name = "Linear Interpolation (Matrix)")

# Issue: https://github.com/SciML/DataInterpolations.jl/issues/303
u = [3.0, 3.0]
t = [0.0, 2.0]
test_derivatives(
LinearInterpolation; args = [u, t], name = "Linear Interpolation with two points")
end

@testset "Quadratic Interpolation" begin
Expand Down

0 comments on commit e1e6b05

Please sign in to comment.