summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-06 02:44:13 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-06 02:44:13 +0200
commit2d2a3848203be18fa57bb05f65741a5d69882e37 (patch)
tree65932525e3c4c573726908cbf4b6a22c6cd18d45 /source/tests
parent42d39d91c2644dd01f006661f385c15d122c553a (diff)
downloadkit-2d2a3848203be18fa57bb05f65741a5d69882e37.zip
test
Diffstat (limited to 'source/tests')
-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);
}