Skip to content

Commit a87b164

Browse files
authored
fix 32 bit tests
1 parent 1f2b5e0 commit a87b164

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/hashing.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,12 @@ struct AUnionParam{T<:Union{Nothing,Float32,Float64}} end
316316
# test hashing of rationals that equal floats are equal to the float hash
317317
@test hash(5//2) == hash(big(5)//2) == hash(2.5)
318318
# test hashing of rational that are integers hash to the integer
319-
@test hash(5^25) == hash(big(5)^25) == hash(5^25//1) == hash(big(5)^25//1)
319+
@test hash(Int64(5)^25) == hash(big(5)^25) == hash(Int64(5)^25//1) == hash(big(5)^25//1)
320320
# test integer/rational that don't fit in Float64 don't hash as Float64
321-
@test hash(5^25) != hash(5.0^25)
322-
@test hash((5//2)^25) == hash(big(5//2)^25)
321+
@test hash(Int64(5)^25) != hash(5.0^25)
322+
@test hash((Int64(5)//2)^25) == hash(big(5//2)^25)
323323
# test integer/rational that don't fit in Float64 don't hash as Float64
324-
@test hash((5//2)^25) != hash(2.5^25)
324+
@test hash((Int64(5)//2)^25) != hash(2.5^25)
325325
# test hashing of rational with odd denominator
326326
@test hash(5//3) == hash(big(5)//3)
327327
end

0 commit comments

Comments
 (0)