-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
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
falseHowever, 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))
trueMetadata
Metadata
Assignees
Labels
No labels