mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 04:46:37 +02:00
tests: add test on function string_split with a string having only delimiters
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user