From 3581a8416618fa0182f6a0e5268a0330d2fcdc7b Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Wed, 6 Sep 2023 03:14:36 +0200 Subject: test --- source/tests/secure_random.test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/tests/secure_random.test.c') 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); } -- cgit v1.2.3