Skip to content

Test fails on 32-bit Windows 7 #15

@gyk

Description

@gyk

Running test in Julia v0.3:

julia> Pkg.test("FixedPointNumbers")
INFO: Testing FixedPointNumbers
ERROR: test failed: one(T) == 1
while loading \.julia\v0.3\FixedPointNumbers\test\ufixed.jl, in expression starting on line 20
while loading \.julia\v0.3\FixedPointNumbers\test\runtests.jl, in expression starting on line 2
...
ERROR: FixedPointNumbers had test errors

julia> one(Ufixed8)
Ufixed8(1.0)

julia> ans == 1
false

However, the following code works as expected:

julia> f() = Ufixed8(1.0) == 1
f (generic function with 2 methods)

julia> f()
true

julia> apply(==, promote(one(Ufixed8), 1))
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions