From eab2f564acfd8f339d108bd9d584d3c4d62bd545 Mon Sep 17 00:00:00 2001 From: hyrodium Date: Sat, 3 Feb 2024 21:30:43 +0900 Subject: [PATCH] replace `==` with `===` in hash test --- test/Quaternion.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Quaternion.jl b/test/Quaternion.jl index 8a4611f..2ecd9a8 100644 --- a/test/Quaternion.jl +++ b/test/Quaternion.jl @@ -68,11 +68,11 @@ end @testset "hash" begin # https://github.com/JuliaGeometry/Quaternions.jl/issues/135 - @test hash(0) == hash(quat(0)) == hash(0.0) == hash(quat(0.0)) - @test hash(1) == hash(quat(1)) == hash(1.0) == hash(quat(1.0)) + @test hash(0) === hash(quat(0)) === hash(0.0) === hash(quat(0.0)) + @test hash(1) === hash(quat(1)) === hash(1.0) === hash(quat(1.0)) @test hash(quat(-0.0)) ≠ hash(quat(+0.0)) @test allunique([hash(quat(1,0,0,0)), hash(quat(0,1,0,0)), hash(quat(0,0,1,0)), hash(quat(0,0,0,1))]) - @test hash(57, UInt(42)) == hash(quat(57), UInt(42)) + @test hash(57, UInt(42)) === hash(quat(57), UInt(42)) @test length(unique(Quaternion[quat(2), quat(big"2")])) == 1 end