Skip to content

Commit e5efd12

Browse files
Fix expected output in TestCondition::alwaysTrue and TestCondition::alwaysTrueContainer (#7709)
1 parent 10a5a16 commit e5efd12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/testcondition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4583,7 +4583,7 @@ class TestCondition : public TestFixture {
45834583
if (std::numeric_limits<char>::is_signed) {
45844584
ASSERT_EQUALS("[test.cpp:6:18]: (style) Condition 'o[1]=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
45854585
} else {
4586-
ASSERT_EQUALS("[test.cpp:4] -> [test.cpp:6]: (style) Condition 'o[1]=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
4586+
ASSERT_EQUALS("[test.cpp:4:25] -> [test.cpp:6:18]: (style) Condition 'o[1]=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
45874587
}
45884588

45894589
check("void f(int x) {\n" // #11449
@@ -5323,7 +5323,7 @@ class TestCondition : public TestFixture {
53235323
if (std::numeric_limits<char>::is_signed) {
53245324
ASSERT_EQUALS("[test.cpp:5:22]: (style) Condition 'buffer.back()=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
53255325
} else {
5326-
ASSERT_EQUALS("[test.cpp:3] -> [test.cpp:5]: (style) Condition 'buffer.back()=='\\0'' is always false\n", errout_str());
5326+
ASSERT_EQUALS("[test.cpp:3:22] -> [test.cpp:5:22]: (style) Condition 'buffer.back()=='\\0'' is always false [knownConditionTrueFalse]\n", errout_str());
53275327
}
53285328

53295329
// #9353

0 commit comments

Comments
 (0)