LeOS-Genesis/external/badvpn/ncd/tests/implode.ncd

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");
}