1 /* $Id: concat-t.c 5054 2001-12-12 09:15:24Z rra $ */
2 /* concat test suite. */
10 #define END (char *) 0
17 ok_string( 1, "a", concat("a", END));
18 ok_string( 2, "ab", concat("a", "b", END));
19 ok_string( 3, "ab", concat("ab", "", END));
20 ok_string( 4, "ab", concat("", "ab", END));
21 ok_string( 5, "", concat("", END));
22 ok_string( 6, "abcde", concat("ab", "c", "", "de", END));
23 ok_string( 7, "abcde", concat("abc", "de", END, "f", END));
25 ok_string( 8, "/foo", concatpath("/bar", "/foo"));
26 ok_string( 9, "/foo/bar", concatpath("/foo", "bar"));
27 ok_string(10, "./bar", concatpath("/foo", "./bar"));
28 ok_string(11, "/bar/baz/foo/bar", concatpath("/bar/baz", "foo/bar"));