diff --git a/test/test_core.jl b/test/test_core.jl index 86a1c150..0187903d 100644 --- a/test/test_core.jl +++ b/test/test_core.jl @@ -246,7 +246,7 @@ end # Optics should hash differently from the underlying tuples, to avoid confusion. # To account for potential collisions, we check that the property holds with high # probability. - @test count(hash(@optic(_[i])) != hash((i,)) for i = 1:1000) > 900 + @test all(hash(@optic(_[i])) != hash((i,)) for i = 1:1000) # Same for tuples of tuples (√(1000) ≈ 32). @test count(hash(@optic(_[i][j])) != hash(((i,), (j,))) for i = 1:32, j = 1:32) > 900