Skip to content

Conversation

@kshyatt
Copy link
Member

@kshyatt kshyatt commented Apr 21, 2024

https://coveralls.io/builds/67039158/source?filename=base%2Firrationals.jl according to coveralls some of this isn't covered

@kshyatt kshyatt added test This change adds or pertains to unit tests maths Mathematical functions labels Apr 21, 2024
@testset "Irrational promote_type" begin
for T in (Float16, Float32, Float64)
for i in (π, ℯ, γ, catalan)
@test T(2.0) * i T(2.0) * T(i)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens to pass with ===, but I agree with your choice to use isapprox instead.

@LilithHafner LilithHafner added the merge me PR is reviewed. Merge when all tests are passing label Apr 21, 2024
@oscardssmith oscardssmith merged commit c1b3661 into master Apr 22, 2024
@oscardssmith oscardssmith deleted the ksh/irrationals branch April 22, 2024 02:03
@oscardssmith oscardssmith removed the merge me PR is reviewed. Merge when all tests are passing label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maths Mathematical functions test This change adds or pertains to unit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants