From b271110788827f77192d38acac536eb6fb617a0d Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Wed, 10 Mar 2021 22:16:14 -0800 Subject: Bump up rand histogram threshold. The previous one sometimes fails for MSVC which has a poor random number generator. Fixes #2182 --- test/rand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/rand.cpp') diff --git a/test/rand.cpp b/test/rand.cpp index dd4e73909..984c01f53 100644 --- a/test/rand.cpp +++ b/test/rand.cpp @@ -51,7 +51,7 @@ template void check_histogram(Scalar x, Scalar y, int bins) Scalar r = check_in_range(x,y); hist( int((int64(r)-int64(x))/divisor) )++; } - VERIFY( (((hist.cast()/double(f))-1.0).abs()<0.025).all() ); + VERIFY( (((hist.cast()/double(f))-1.0).abs()<0.03).all() ); } EIGEN_DECLARE_TEST(rand) -- cgit v1.2.3