Skip to content

Commit c1bbe88

Browse files
committed
length mismatches in tests
1 parent c18ba70 commit c1bbe88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/derivative_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ end
150150

151151
@testset "Constant Interpolation" begin
152152
u = [0.0, 2.0, 1.0, 3.0, 2.0, 6.0, 5.5, 5.5, 2.7, 5.1, 3.0]
153-
t = collect(0.0:11.0)
153+
t = collect(0.0:10.0)
154154
A = ConstantInterpolation(u, t)
155-
t2 = collect(0.0:10.0)
155+
t2 = collect(0.0:9.0)
156156
@test all(isnan, derivative.(Ref(A), t))
157157
@test all(derivative.(Ref(A), t2 .+ 0.1) .== 0.0)
158158
end

test/integral_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ end
112112
args = [u, t, :Backward],
113113
name = "Quadratic Interpolation (Vector)")
114114
u = round.(rand(100), digits = 5)
115-
t = 1.0collect(1:10)
115+
t = 1.0collect(1:100)
116116
test_integral(QuadraticInterpolation; args = [u, t],
117117
name = "Quadratic Interpolation (Vector) with random points")
118118
end

0 commit comments

Comments
 (0)