From 16bed07c60849d4c158e043d64b59ed1ed210137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 22 Jun 2019 07:50:43 +0200 Subject: [PATCH] Clarify tests --- test/testother.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testother.cpp b/test/testother.cpp index 1031db170..6d4865fd6 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -2849,12 +2849,12 @@ private: void suspiciousEqualityComparison() { check("void foo(int c) {\n" - " if (c == 1) c == 0;\n" + " if (x) c == 0;\n" "}"); ASSERT_EQUALS("[test.cpp:2]: (warning, inconclusive) Found suspicious equality comparison. Did you intend to assign a value instead?\n", errout.str()); check("void foo(int* c) {\n" - " if (*c == 1) *c == 0;\n" + " if (x) *c == 0;\n" "}"); ASSERT_EQUALS("[test.cpp:2]: (warning, inconclusive) Found suspicious equality comparison. Did you intend to assign a value instead?\n", errout.str());