diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-14 18:52:23 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-05-14 18:52:23 +0200 |
commit | 46b9428f9ecb611ed1e07cf5c098a4c7cca54b17 (patch) | |
tree | e1b12e7755d72dd98e6cfcaa3ab81c2a9d50cc0c /tests/unit | |
parent | 78ebe631059e10f247ad736e204f5eefcbb534a6 (diff) | |
download | weechat-46b9428f9ecb611ed1e07cf5c098a4c7cca54b17.zip |
tests: reverse arguments in calls to STRCMP_EQUAL
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/core/test-core-string.cpp | 14 |
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); } |