summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/tests/mersenne_twister_64.test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/tests/mersenne_twister_64.test.c b/source/tests/mersenne_twister_64.test.c
index 6bf5b9c..f9b0278 100644
--- a/source/tests/mersenne_twister_64.test.c
+++ b/source/tests/mersenne_twister_64.test.c
@@ -4,7 +4,7 @@
#define KIT_TEST_FILE mersenne_twister_64
#include "../kit_test/test.h"
-enum { SIZE = 1000 };
+enum { MT64_TEST_SIZE = 1000 };
TEST("mt64 same seeds") {
ptrdiff_t i;
@@ -16,7 +16,7 @@ TEST("mt64 same seeds") {
mt64_init(&bar, seed);
int ok = 1;
- for (i = 0; i < SIZE; i++)
+ for (i = 0; i < MT64_TEST_SIZE; i++)
ok = ok && mt64_generate(&foo) == mt64_generate(&bar);
REQUIRE(ok);
@@ -30,9 +30,9 @@ TEST("mt64 different seeds") {
mt64_init(&bar, 4242424242);
ptrdiff_t difference_count = 0;
- for (i = 0; i < SIZE; i++)
+ for (i = 0; i < MT64_TEST_SIZE; i++)
if (mt64_generate(&foo) != mt64_generate(&bar))
difference_count++;
- REQUIRE(difference_count > SIZE / 2);
+ REQUIRE(difference_count > MT64_TEST_SIZE / 2);
}