Skip to content

Commit

Permalink
expand tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Aug 30, 2024
1 parent f7472ef commit 3aa831f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,12 @@ end
Base.promote_rule(::Type{Issue55633}, ::Type{Issue55633Squared}) = Int
Base.convert(::Type{Int}, ::Issue55633) = 3
Base.convert(::Type{Int}, ::Issue55633Squared) = 9
@test 9 === Issue55633()^2
for x (im, pi, [1 2; 3 4], Issue55633())
p = promote(x, x*x)
for y 1:2
@test all((t -> ===(t...)), zip(x^y, p[y]))
end
end
end

# Test that sqrt behaves correctly and doesn't exhibit fp80 double rounding.
Expand Down

0 comments on commit 3aa831f

Please sign in to comment.