[DEV] add v1.66.0

This commit is contained in:
2018-01-12 21:47:58 +01:00
parent 87059bb1af
commit a97e9ae7d4
49032 changed files with 7668950 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
/*
Test case for ticket #7951
tests whether or not xxx() == xxx(0) for various engines
Thanks to Stephen T. Lavavej for his close reading of 26.5.3.3 [rand.eng.sub]/7
*/
#include <boost/random/ranlux.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/random/mersenne_twister.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable:4244)
#endif
BOOST_AUTO_TEST_CASE(test_zero_seed)
{
BOOST_CHECK(boost::random::ranlux24_base(0) == boost::random::ranlux24_base());
BOOST_CHECK(boost::random::minstd_rand0(0) == boost::random::minstd_rand0());
BOOST_CHECK(boost::random::mt19937(0) != boost::random::mt19937());
BOOST_CHECK(boost::random::ranlux48_base(0) == boost::random::ranlux48_base ());
BOOST_CHECK(boost::random::ranlux_base_01(0) == boost::random::ranlux_base_01 ());
BOOST_CHECK(boost::random::ranlux64_base_01(0) == boost::random::ranlux64_base_01 ());
}