2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
|
|
|
Copyright (c) 2011-2013 Bolero MURAKAMI
|
|
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
|
|
|
|
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)
|
|
|
|
=============================================================================*/
|
2012-05-19 09:46:38 +00:00
|
|
|
#ifndef SPROUT_LIBS_RANDOM_TEST_LINEAR_CONGRUENTIAL_CPP
|
|
|
|
#define SPROUT_LIBS_RANDOM_TEST_LINEAR_CONGRUENTIAL_CPP
|
2011-12-23 11:59:33 +00:00
|
|
|
|
|
|
|
#include <sprout/random/linear_congruential.hpp>
|
2012-05-19 09:46:38 +00:00
|
|
|
#include "./engine_generic.hpp"
|
2011-12-23 11:59:33 +00:00
|
|
|
#include <testspr/tools.hpp>
|
|
|
|
|
|
|
|
namespace testspr {
|
|
|
|
void random_linear_congruential_test() {
|
|
|
|
using namespace sprout;
|
|
|
|
|
|
|
|
testspr::random_engine_test_generic<sprout::random::minstd_rand0>();
|
|
|
|
testspr::random_engine_test_generic<sprout::random::minstd_rand>();
|
|
|
|
testspr::random_engine_test_generic<sprout::random::rand48>();
|
|
|
|
}
|
|
|
|
} // namespace testspr
|
|
|
|
|
2012-05-19 09:46:38 +00:00
|
|
|
#ifndef TESTSPR_CPP_INCLUDE
|
|
|
|
# define TESTSPR_TEST_FUNCTION testspr::random_linear_congruential_test
|
|
|
|
# include <testspr/include_main.hpp>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_LIBS_RANDOM_TEST_LINEAR_CONGRUENTIAL_CPP
|