summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}