diff options
author | rsiddharth <s@ricketyspace.net> | 2019-09-29 21:24:09 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-04-17 20:56:34 -0400 |
commit | 186f496df7cb01a2c05b2a1b212b5ea9b7b33663 (patch) | |
tree | cdde520c90211397e5fa1595e4582581afdbd39b /nserver | |
parent | 04310feb4d12ace8b31e1acf74f7f2c159e2659d (diff) |
nserver: Add protocol_tests.c
Diffstat (limited to 'nserver')
-rw-r--r-- | nserver/tests/protocol_tests.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nserver/tests/protocol_tests.c b/nserver/tests/protocol_tests.c new file mode 100644 index 0000000..2c4f60e --- /dev/null +++ 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); |