JuliaMath / JuliaMath/Infinities.jl

hashing is part unimplemented, part incorrect

Open
#56 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
22
Forks
10
Avg merge
1d 4h
Merged PRs (30d)
7

Description

Test:

```julia
using Test, Infinities

@testset "hash versus floating-point infinity" begin
@testset "one argument" begin
@test hash(Inf) === hash(∞)
end
@testset "two arguments" begin
for h ∈ rand(UInt, 256)
@test hash(Inf, h) === hash(∞, h)
end
end
end
```

Result:

```none
Test Summary: | Fail Error Total Time
hash versus floating-point infinity | 1 256 257 22.4s
one argument | 1 1 1.6s
two arguments | 256 256 20.9s
ERROR: Some tests did not pass: 0 passed, 1 failed, 256 errored, 0 broken.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.