Skip to content

Commit aaf5a97

Browse files
committed
add more user error tests
1 parent 842f606 commit aaf5a97

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/regularization.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,10 @@ end
191191
A = RegularizationSmooth(uₒ, tₒ; alg = :fixed)
192192
@test @inferred(A(1.0)) == A(1.0)
193193
end
194+
195+
@testset "User error" begin
196+
@test_throws ArgumentError RegularizationSmooth(tₒ, uₒ; alg = :fixed)
197+
= 20
198+
= collect(range(xmin, xmin + xspan, length = N̂))
199+
@test_throws ArgumentError RegularizationSmooth(u, t̂, t)
200+
end

0 commit comments

Comments
 (0)