Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test for exponentially growing promote_type #280

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

kimikage
Copy link
Collaborator

@kimikage kimikage commented Apr 6, 2024

This follows the behavior, i.e. the order of evaluation, in Base.
It was changed recently in the nightly build (cf. JuliaLang/julia#53665), and it might be changed further in the future.

julia> VERSION
v"1.12.0-DEV.283"

julia> promote_type(N0f8, N1f7, N2f6, N3f5, N4f4, N5f3)
N8f8 (alias for Normed{UInt16, 8})

I thought Julia was getting very smart, but that was not the case. 😆

This follows the behavior, i.e. the order of evaluation, in `Base`.
Copy link

codecov bot commented Apr 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.07%. Comparing base (8b9119c) to head (889dcbd).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #280   +/-   ##
=======================================
  Coverage   97.07%   97.07%           
=======================================
  Files           6        6           
  Lines         785      785           
=======================================
  Hits          762      762           
  Misses         23       23           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kimikage kimikage merged commit fd859c7 into JuliaMath:master Apr 6, 2024
15 of 19 checks passed
@kimikage kimikage deleted the promote_type_order branch April 6, 2024 09:44
@kimikage kimikage mentioned this pull request Apr 30, 2024
38 tasks
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request Apr 30, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request Apr 30, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 1, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 13, 2024
kimikage added a commit to kimikage/FixedPointNumbers.jl that referenced this pull request May 13, 2024
kimikage added a commit that referenced this pull request May 13, 2024
* Backport "Fix test for exponentially growing `promote_type` (#280)"

* fix tests on 1.7 (#253)

Co-authored-by: Johnny Chen <[email protected]>
Co-authored-by: kimikage <[email protected]>

* Mark `test_broken` for conversion to `Float16`

* Backport "Add test for `unsafe_trunc` returning arbitrary values (#289)"

---------

Co-authored-by: Kristoffer Carlsson <[email protected]>
Co-authored-by: Johnny Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant