From 3e841c121345f05f47c980005b8be406005e7983 Mon Sep 17 00:00:00 2001 From: Xianda Sun <5433119+sunxd3@users.noreply.github.com> Date: Sat, 23 Mar 2024 09:37:58 +0000 Subject: [PATCH] Update test/test_core.jl Co-authored-by: Jan Weidner --- test/test_core.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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