Skip to content

Commit

Permalink
test: improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jul 22, 2024
1 parent d165f6b commit 19b7308
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_expression_math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,16 @@ end
@test_throws MissingOperatorError 1.0f0 / ex
@test_throws MissingOperatorError 1.0 / ex
@test_throws MissingOperatorError 1 / ex

if VERSION >= v"1.8-"
err = try
cos(ex)
catch e
e
end
@test occursin(
"Operator cos not found in operators for expression type",
sprint(showerror, err),
)
end
end

0 comments on commit 19b7308

Please sign in to comment.