Fix testrunner
This commit is contained in:
parent
0e48625ff4
commit
9417425829
|
@ -1552,14 +1552,12 @@ private:
|
|||
check("void f() {\n"
|
||||
" if (x & 3 == 2) {}\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("[test.cpp:2]: (style) Suspicious condition (bitwise operator + comparison); Clarify expression with parentheses.\n"
|
||||
"[test.cpp:2]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses.\n", errout.str());
|
||||
ASSERT_EQUALS("[test.cpp:2]: (style) Suspicious condition (bitwise operator + comparison); Clarify expression with parentheses.\n", errout.str());
|
||||
|
||||
check("void f() {\n"
|
||||
" if (a & fred1.x == fred2.y) {}\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("[test.cpp:2]: (style) Suspicious condition (bitwise operator + comparison); Clarify expression with parentheses.\n"
|
||||
"[test.cpp:2]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses.\n", errout.str());
|
||||
ASSERT_EQUALS("[test.cpp:2]: (style) Suspicious condition (bitwise operator + comparison); Clarify expression with parentheses.\n", errout.str());
|
||||
}
|
||||
|
||||
// clarify condition that uses ! operator and then bitwise operator
|
||||
|
|
Loading…
Reference in New Issue