aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Antonio Sanchez <cantonios@google.com>2021-03-10 22:16:14 -0800
committerGravatar Antonio Sanchez <cantonios@google.com>2021-03-10 22:17:03 -0800
commitb271110788827f77192d38acac536eb6fb617a0d (patch)
tree63a88c99dc75ddbf12c9c5ebea418746a42f87d4 /test
parentd098c4d64c6e2e595b5bb26a6fb111fe979c3364 (diff)
Bump up rand histogram threshold.
The previous one sometimes fails for MSVC which has a poor random number generator. Fixes #2182
Diffstat (limited to 'test')
-rw-r--r--test/rand.cpp2
1 files changed, 1 insertions, 1 deletions
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<typename Scalar> 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>()/double(f))-1.0).abs()<0.025).all() );
+ VERIFY( (((hist.cast<double>()/double(f))-1.0).abs()<0.03).all() );
}
EIGEN_DECLARE_TEST(rand)