diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-08-15 09:42:59 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-08-15 09:42:59 +0200 |
commit | cdc7faf93fd7c98cb0a2e8047f7edfb60d47f117 (patch) | |
tree | 55c0c2993193a94a4c60b016aa39ef8ba0c485f5 /tests/unit/core | |
parent | 6d061a9ac0aa62cb1c86558cc53d8676f9d65ff6 (diff) | |
download | weechat-cdc7faf93fd7c98cb0a2e8047f7edfb60d47f117.zip |
tests: add test on function string_split with a string having only delimiters
Diffstat (limited to 'tests/unit/core')
-rw-r--r-- | tests/unit/core/test-string.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp index c1f19798c..518d07fe7 100644 --- a/tests/unit/core/test-string.cpp +++ b/tests/unit/core/test-string.cpp @@ -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); |