From cdc7faf93fd7c98cb0a2e8047f7edfb60d47f117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 15 Aug 2018 09:42:59 +0200 Subject: [PATCH] tests: add test on function string_split with a string having only delimiters --- tests/unit/core/test-string.cpp | 3 +++ 1 file changed, 3 insertions(+) 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);