Skip to content

Change the promotions in ranges causes package tests to fail. #2

@KristofferC

Description

@KristofferC

After JuliaLang/julia#43059 there is a change in the result of range when it comes to mixed input types:

julia> start, step, length = (2.0, -1, 5)
(2.0, -1, 5)

julia> Base.range(start; step, length) |> typeof # 1.8
StepRangeLen{Float64, Float64, Int64, Int64}

julia> Base.range(start; step, length) |> typeof # 1.7
StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64}

This causes some tests in this package (that check === ) to fail, see the PkgEval report https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/fb69baf_vs_40279f9/RangeHelpers.primary.log.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions