badvpn/ncd/tests/implode.ncd
2012-08-06 23:27:08 +00:00

16 lines
261 B
Plaintext

process main {
implode("X", {"a", "bb", "", "c"}) str;
strcmp(str, "aXbbXXc") a;
assert(a);
implode("", {"a", "b"}) str;
strcmp(str, "ab") a;
assert(a);
implode("X", {}) str;
strcmp(str, "") a;
assert(a);
exit("0");
}