mirror of
https://github.com/boostorg/random.git
synced 2026-01-19 04:22:17 +00:00
Add reproducer test set
This commit is contained in:
@@ -88,6 +88,7 @@ run test_comp_xoshiro128f.cpp ;
|
||||
|
||||
run github_issue_133.cpp ;
|
||||
run github_issue_147.cpp ;
|
||||
run github_issue_150.cpp ;
|
||||
|
||||
run niederreiter_base2_validate.cpp /boost/test//boost_unit_test_framework ;
|
||||
run sobol_validate.cpp /boost/test//boost_unit_test_framework ;
|
||||
|
||||
25
test/github_issue_150.cpp
Normal file
25
test/github_issue_150.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright Matt Borland 2025.
|
||||
* Distributed under the Boost Software License, Version 1.0. (See
|
||||
* accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
* See http://www.boost.org for most recent version including documentation.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <boost/random.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <random>
|
||||
#include <cstdint>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::mt19937_64 gen;
|
||||
boost::random::binomial_distribution<std::uint64_t> dist;
|
||||
|
||||
BOOST_TEST(dist(gen) >= 0);
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
Reference in New Issue
Block a user