diff options
author | EuAndreh <eu@euandre.org> | 2024-07-05 09:46:35 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-07-05 09:46:35 -0300 |
commit | e8e58c09ae2845d79d6ba894af5d8347e2b3a657 (patch) | |
tree | 956e9a9ef27c2627daf9b512e8ac79d9b5c7c4d1 /tests | |
parent | src/util.c: Tolerate be given a NULL pointer (diff) | |
download | pindaiba-e8e58c09ae2845d79d6ba894af5d8347e2b3a657.tar.gz pindaiba-e8e58c09ae2845d79d6ba894af5d8347e2b3a657.tar.xz |
src/random.h: Add initial implementation of random_{new,free,generate}()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/random.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/random.c b/tests/random.c index c894e59..09ad1a7 100644 --- a/tests/random.c +++ b/tests/random.c @@ -56,6 +56,25 @@ out: return rc; } +static int +test_random_new(void) { + // FIXME: implement these + return 0; +} + +static int +test_random_free(void) { + // FIXME: implement these + return 0; +} + +static int +test_random_generate(void) { + // FIXME: implement these + return 0; +} + + int main(void) { int rc = EXIT_FAILURE; @@ -65,6 +84,21 @@ main(void) { goto out; } + if (test_random_new()) { + logerr("test_random_new()"); + goto out; + } + + if (test_random_free()) { + logerr("test_random_free()"); + goto out; + } + + if (test_random_generate()) { + logerr("test_random_generate()"); + goto out; + } + rc = EXIT_SUCCESS; out: return rc; |