- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/RandomNumbers/unittests/RandomNumberEngineFactoryUnitTest.cpp
r0275ad rc14c78 130 130 131 131 // change the prototype directly 132 CPPUNIT_ASSERT ( 0!= prototype.getseed() );133 prototype.seed( 0);132 CPPUNIT_ASSERT ( 2 != prototype.getseed() ); 133 prototype.seed(2); // note for this prototype seed of 0 is not allowd by boost::random 134 134 135 135 // check that prototype has indeed been manipulated 136 136 rndA_2 = RandomNumberEngineFactory::getInstance(). 137 137 getProduct(RandomNumberEngineFactory::minstd_rand0); 138 CPPUNIT_ASSERT_EQUAL( (unsigned int) 0, rndA_2->getseed() );138 CPPUNIT_ASSERT_EQUAL( (unsigned int)2, rndA_2->getseed() ); 139 139 CPPUNIT_ASSERT( rndA_2->getseed() != rndA_1->getseed()); 140 140
Note:
See TracChangeset
for help on using the changeset viewer.