summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/core/test-string.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp
index a7d2d48c2..80bab8ec2 100644
--- a/tests/unit/core/test-string.cpp
+++ b/tests/unit/core/test-string.cpp
@@ -690,16 +690,16 @@ TEST(String, Split)
POINTERS_EQUAL(NULL, string_split ("", NULL, 0, 0, NULL));
POINTERS_EQUAL(NULL, string_split ("", "", 0, 0, NULL));
- argc = 1;
+ argc = -1;
POINTERS_EQUAL(NULL, string_split (NULL, NULL, 0, 0, &argc));
LONGS_EQUAL(0, argc);
- argc = 1;
+ argc = -1;
POINTERS_EQUAL(NULL, string_split (NULL, "", 0, 0, &argc));
LONGS_EQUAL(0, argc);
- argc = 1;
+ argc = -1;
POINTERS_EQUAL(NULL, string_split ("", NULL, 0, 0, &argc));
LONGS_EQUAL(0, argc);
- argc = 1;
+ argc = -1;
POINTERS_EQUAL(NULL, string_split ("", "", 0, 0, &argc));
LONGS_EQUAL(0, argc);