1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 20:36:38 +02:00

tests: add test on function string_split with a string having only delimiters

This commit is contained in:
Sébastien Helleu
2018-08-15 09:42:59 +02:00
parent 6d061a9ac0
commit cdc7faf93f
+3
View File
@@ -948,6 +948,9 @@ TEST(CoreString, Split)
argc = -1;
POINTERS_EQUAL(NULL, string_split ("", "", 0, 0, &argc));
LONGS_EQUAL(0, argc);
argc = -1;
POINTERS_EQUAL(NULL, string_split (" ", " ", 0, 0, &argc));
LONGS_EQUAL(0, argc);
/* free split with NULL */
string_free_split (NULL);