Skip to content

Commit

Permalink
make math effect-tests actually fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Jul 22, 2022
1 parent eee61df commit e91a246
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1458,11 +1458,7 @@ for fn in (:sin, :cos, :tan, :log, :log2, :log10, :log1p, :exponent, :sqrt, :cbr
for T in (Float32, Float64)
f = getfield(@__MODULE__, fn)
eff = Base.infer_effects(f, (T,))
if Core.Compiler.is_foldable(eff)
@test true
else
@warn "bad effects found for $f(::$T)" eff
end
@test Core.Compiler.is_foldable(eff)
end
end
for T in (Float32, Float64)
Expand Down

0 comments on commit e91a246

Please sign in to comment.