From 46b9428f9ecb611ed1e07cf5c098a4c7cca54b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 14 May 2023 18:52:23 +0200 Subject: tests: reverse arguments in calls to STRCMP_EQUAL --- tests/unit/core/test-core-string.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/unit') 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); } -- cgit v1.2.3