Skip to content

Commit ed03c91

Browse files
Update teststl.cpp
1 parent 462550a commit ed03c91

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/teststl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ class TestStl : public TestFixture {
613613
" return i;\n"
614614
" return 0;\n"
615615
"}\n");
616-
ASSERT_EQUALS("[test.cpp:8:0]: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm]\n", errout_str());
616+
ASSERT_EQUALS("[test.cpp:8:13]: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm]\n", errout_str());
617617

618618
checkNormal("bool g();\n"
619619
"int f(int x) {\n"
@@ -626,7 +626,7 @@ class TestStl : public TestFixture {
626626
" return i;\n"
627627
" return 0;\n"
628628
"}\n");
629-
ASSERT_EQUALS("[test.cpp:8:0]: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm]\n", errout_str());
629+
ASSERT_EQUALS("[test.cpp:8:13]: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm]\n", errout_str());
630630

631631
checkNormal("bool g();\n"
632632
"void f(int x) {\n"
@@ -5260,7 +5260,7 @@ class TestStl : public TestFixture {
52605260
" return s.erase(it);\n"
52615261
" return s.end();\n"
52625262
"}\n");
5263-
ASSERT_EQUALS("[test.cpp:3:0]: (style) Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm]\n", errout_str());
5263+
ASSERT_EQUALS("[test.cpp:3:9]: (style) Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm]\n", errout_str());
52645264

52655265
// #11381
52665266
check("int f(std::map<int, int>& map) {\n"
@@ -5953,7 +5953,7 @@ class TestStl : public TestFixture {
59535953
" v1.erase(it1);\n"
59545954
" }\n"
59555955
"}\n");
5956-
ASSERT_EQUALS("[test.cpp:9:0]: (style) Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm]\n", errout_str());
5956+
ASSERT_EQUALS("[test.cpp:9:17]: (style) Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm]\n", errout_str());
59575957

59585958
check("bool f(const std::set<std::string>& set, const std::string& f) {\n" // #11595
59595959
" for (const std::string& s : set) {\n"

0 commit comments

Comments
 (0)