Skip to content

Commit

Permalink
test(BSplines): make test variables local
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh-b-b committed Oct 19, 2024
1 parent 6997490 commit a0a059f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/interpolation_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -625,10 +625,9 @@ end
@testset "BSplines" begin

# BSpline Interpolation and Approximation
t = [0, 62.25, 109.66, 162.66, 205.8, 252.3]
u = [14.7, 11.51, 10.41, 14.95, 12.24, 11.22]

@testset "BSplineInterpolation" begin
t = [0, 62.25, 109.66, 162.66, 205.8, 252.3]
u = [14.7, 11.51, 10.41, 14.95, 12.24, 11.22]
test_interpolation_type(BSplineInterpolation)
A = BSplineInterpolation(u, t, 2, :Uniform, :Uniform)

Expand Down Expand Up @@ -699,6 +698,8 @@ end

@testset "BSplineApprox" begin
test_interpolation_type(BSplineApprox)
t = [0, 62.25, 109.66, 162.66, 205.8, 252.3]
u = [14.7, 11.51, 10.41, 14.95, 12.24, 11.22]
A = BSplineApprox(u, t, 2, 4, :Uniform, :Uniform)

@test [A(25.0), A(80.0)] [12.979802931218234, 10.914310609953178]
Expand Down

0 comments on commit a0a059f

Please sign in to comment.