MTRandomTests.cpp 491 B

123456789101112131415161718192021222324252627
  1. #include <CppUTest/TestHarness.h>
  2. #include <stdint.h>
  3. extern "C" {
  4. #include "mtrandom.h"
  5. }
  6. TEST_GROUP(MTRandomTests)
  7. {
  8. };
  9. TEST(MTRandomTests, InitParamsTest)
  10. {
  11. mtSetupRandomParams(10);
  12. //LONGS_EQUAL(10,);
  13. //if(0 == sRandomParams.panSeedBlocks) FAIL("Malloc failed to allocate memory!")
  14. }
  15. /*Test not correct*/
  16. IGNORE_TEST(MTRandomTests, SeedTest)
  17. {
  18. mtSetupRandomParams(10);
  19. mtSetSeed(0);
  20. //LONGS_EQUAL(0, sRandomParams.panSeedBlocks[0]);
  21. /*LONGS_EQUAL(1, naSeedBlocks[1]);*/
  22. }