Skip to content

Commit

Permalink
add test for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Sep 22, 2023
1 parent 9d8dfe7 commit b0a1e41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/EasyFit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ include("./fitdensity.jl")

# fitspline is defined in ext/SplineFitExt.jl
export fitspline
function fitspline(args...)
error("Load first the `Interpolations` package to use the `fitspline` function.")
fitspline(args...) = error("Load first the `Interpolations` package to use the `fitspline` function.")
@testitem "fitspline error" begin
@test_throws "Load first the `Interpolations` package to use the `fitspline` function." fitspline()
end

end

0 comments on commit b0a1e41

Please sign in to comment.