diff options
Diffstat (limited to 'tests/test_errors.c')
-rw-r--r-- | tests/test_errors.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_errors.c b/tests/test_errors.c new file mode 100644 index 0000000..f9d641f --- /dev/null +++ b/tests/test_errors.c @@ -0,0 +1,11 @@ +#include "cleanpath.h" +#include "framework.h" + +int main() { + struct CleanPath *path; + path = NULL; + + //intentionally bad + myassert(cleanpath_init("good", NULL) == NULL, "cleanpath_init() returned non-NULL on NULL sep\n"); + myassert(cleanpath_init(NULL, "good") == NULL, "cleanpath_init() returned non-NULL on NULL path\n"); +}
\ No newline at end of file |