Skip to content

Commit

Permalink
set a tolerance for the randomly generated numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
kszucs committed Dec 19, 2024
1 parent 44da198 commit f87a6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/kernels/scalar_hash_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ TEST_F(TestScalarHash, RandomPrimitive) {
CheckPrimitive("hash64", arr);
if (type->bit_width() >= 16) {
// the generated arrays contain unique values at the given lengths
CheckHashQuality("hash32", arr);
CheckHashQuality("hash64", arr);
CheckHashQuality("hash32", arr, 0.98);
CheckHashQuality("hash64", arr, 0.98);
}
}
}
Expand Down

0 comments on commit f87a6de

Please sign in to comment.