2
0
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:
Matt Borland
2025-12-02 12:39:27 +01:00
parent 525a07cb70
commit b75f487382
2 changed files with 26 additions and 0 deletions

View File

@@ -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
View 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();
}