summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-06 03:14:36 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-06 03:14:36 +0200
commit3581a8416618fa0182f6a0e5268a0330d2fcdc7b (patch)
tree4a3ae6521fdf310019ecbf008dd3743fd81f0e2a /source
parent880c3a30a186eb947a1fae33f58ea19855b620ba (diff)
downloadkit-3581a8416618fa0182f6a0e5268a0330d2fcdc7b.zip
test
Diffstat (limited to 'source')
-rw-r--r--source/tests/secure_random.test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/tests/secure_random.test.c b/source/tests/secure_random.test.c
index a7d1d19..91695e3 100644
--- a/source/tests/secure_random.test.c
+++ b/source/tests/secure_random.test.c
@@ -16,14 +16,14 @@ TEST("secure random") {
int repeats = 0;
for (int i = 1; i < sizeof v / sizeof *v; i++) {
- printf(" %d ", v[i]);
+ printf(" %d", v[i]);
for (int j = 0; j < i; j++)
if (v[i] == v[j]) {
- printf(" - REPEAT\n");
+ printf(" - REPEAT");
repeats++;
- } else
- printf(" \n");
+ }
+ printf(" \n");
}
- REQUIRE(repeats == 0);
+ REQUIRE_EQ(repeats, 0);
}