diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-01-05 18:51:41 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-01-05 18:51:41 +0100 |
commit | 01c5f33c8a1c163a4e02e486ceff3b1556594514 (patch) | |
tree | 2886ac3ad940e203a4d251022584abb715288df6 /source/tests | |
parent | 2b8c519b24dbaac69ecd5d5ed9fe2b1ef321aeff (diff) | |
download | kit-01c5f33c8a1c163a4e02e486ceff3b1556594514.zip |
Update HTTP1; Error handling for secure random
Diffstat (limited to 'source/tests')
-rw-r--r-- | source/tests/http1.test.c | 5 | ||||
-rw-r--r-- | source/tests/secure_random.test.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source/tests/http1.test.c b/source/tests/http1.test.c index 1808785..09da5f4 100644 --- a/source/tests/http1.test.c +++ b/source/tests/http1.test.c @@ -3,6 +3,9 @@ #define KIT_TEST_FILE http1 #include "../kit/kit_test.h" -TEST("http1") { } +TEST("http1") { + // TODO + // +} #undef KIT_TEST_FILE diff --git a/source/tests/secure_random.test.c b/source/tests/secure_random.test.c index efcf327..62021b1 100644 --- a/source/tests/secure_random.test.c +++ b/source/tests/secure_random.test.c @@ -8,8 +8,8 @@ TEST("secure random") { int v[20]; memset(v, 0, sizeof v); - secure_random(40, v); - secure_random(40, v + 10); + REQUIRE_EQ(secure_random(40, v), KIT_OK); + REQUIRE_EQ(secure_random(40, v + 10), KIT_OK); int repeats = 0; |