nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 186f496df7cb01a2c05b2a1b212b5ea9b7b33663
parent 04310feb4d12ace8b31e1acf74f7f2c159e2659d
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 29 Sep 2019 21:24:09 -0400

nserver: Add protocol_tests.c

Diffstat:
nserver/tests/protocol_tests.c | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/nserver/tests/protocol_tests.c b/nserver/tests/protocol_tests.c @@ -0,0 +1,23 @@ +#include "minunit.h" +#include <protocol.h> + +char *test_sscreate() +{ + int rc = 0; + + rc = sscreate("fuck"); + mu_assert(rc == 0, "sscreate failed"); + + return NULL; +} + +char *all_tests() +{ + mu_suite_start(); + + mu_run_test(test_sscreate); + + return NULL; +} + +RUN_TESTS(all_tests);