summaryrefslogtreecommitdiff
path: root/tests/unit/core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/core')
-rw-r--r--tests/unit/core/test-core-string.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/core/test-core-string.cpp b/tests/unit/core/test-core-string.cpp
index a74e0cca3..876e71c0a 100644
--- a/tests/unit/core/test-core-string.cpp
+++ b/tests/unit/core/test-core-string.cpp
@@ -139,43 +139,43 @@ TEST(CoreString, Strndup)
str = string_strndup (str_test, 0);
CHECK(str);
CHECK(str != str_test);
- STRCMP_EQUAL(str, "");
+ STRCMP_EQUAL("", str);
free (str);
str = string_strndup (str_test, 1);
CHECK(str);
CHECK(str != str_test);
- STRCMP_EQUAL(str, "t");
+ STRCMP_EQUAL("t", str);
free (str);
str = string_strndup (str_test, 2);
CHECK(str);
CHECK(str != str_test);
- STRCMP_EQUAL(str, "te");
+ STRCMP_EQUAL("te", str);
free (str);
str = string_strndup (str_test, 3);
CHECK(str);
CHECK(str != str_test);
- STRCMP_EQUAL(str, "tes");
+ STRCMP_EQUAL("tes", str);
free (str);
str = string_strndup (str_test, 4);
CHECK(str);
CHECK(str != str_test);
- STRCMP_EQUAL(str, "test");
+ STRCMP_EQUAL("test", str);
free (str);
str = string_strndup (str_test, 5);
CHECK(str);
CHECK(str != str_test);
- STRCMP_EQUAL(str, "test");
+ STRCMP_EQUAL("test", str);
free (str);
str = string_strndup (str_test, 500);
CHECK(str);
CHECK(str != str_test);
- STRCMP_EQUAL(str, str_test);
+ STRCMP_EQUAL(str_test, str);
free (str);
}