Skip to content

Commit

Permalink
Test loess on vector with possible nothing type
Browse files Browse the repository at this point in the history
  • Loading branch information
frankier committed Aug 26, 2024
1 parent e573faa commit 5286502
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,9 @@ end
@test predict(ft, 1.0) == 1.0
@test_throws ArgumentError loess(Float64[], Float64[])
end

@testset "infinite recursion. Issue 60" begin
x = collect(1.0:10.0)
y = convert(Vector{Union{Nothing, Float64}}, x)
@test_throws MethodError loess(x, y)
end

0 comments on commit 5286502

Please sign in to comment.