aboutsummaryrefslogtreecommitdiff
path: root/tests/test_errors.c
blob: 82241edc3991249ef39795b65220a1c0f67d7e7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "cleanpath/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");
}