]> git.ozlabs.org Git - ccan/blob - ccan/tal/path/test/run-is_abs.c
ccanlint: handle nested modules when mentioned in examples.
[ccan] / ccan / tal / path / test / run-is_abs.c
1 #include <ccan/tal/path/path.h>
2 #include <ccan/tal/path/path.c>
3 #include <ccan/tap/tap.h>
4
5 int main(void)
6 {
7         plan_tests(5);
8
9         ok1(path_is_abs(PATH_SEP_STR "foo"));
10         ok1(!path_is_abs("foo"));
11         ok1(!path_is_abs("foo" PATH_SEP_STR));
12
13         ok1(path_is_abs(PATH_SEP_STR "foo" PATH_SEP_STR));
14         ok1(path_is_abs(PATH_SEP_STR "."));
15         return exit_status();
16 }