You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/testboost.cpp
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -61,31 +61,31 @@ class TestBoost : public TestFixture {
61
61
" data.push_back(123);\n"
62
62
" }\n"
63
63
"}");
64
-
ASSERT_EQUALS("[test.cpp:4]: (error) BOOST_FOREACH caches the end() iterator. It's undefined behavior if you modify the container.\n", errout.str());
64
+
ASSERT_EQUALS("[test.cpp:4]: (error) BOOST_FOREACH caches the end() iterator. It's undefined behavior if you modify the container inside.\n", errout.str());
65
65
66
66
check("void f() {\n"
67
67
" set<int> data;\n"
68
68
" BOOST_FOREACH(int i, data) {\n"
69
69
" data.insert(123);\n"
70
70
" }\n"
71
71
"}");
72
-
ASSERT_EQUALS("[test.cpp:4]: (error) BOOST_FOREACH caches the end() iterator. It's undefined behavior if you modify the container.\n", errout.str());
72
+
ASSERT_EQUALS("[test.cpp:4]: (error) BOOST_FOREACH caches the end() iterator. It's undefined behavior if you modify the container inside.\n", errout.str());
73
73
74
74
check("void f() {\n"
75
75
" set<int> data;\n"
76
76
" BOOST_FOREACH(const int &i, data) {\n"
77
77
" data.erase(123);\n"
78
78
" }\n"
79
79
"}");
80
-
ASSERT_EQUALS("[test.cpp:4]: (error) BOOST_FOREACH caches the end() iterator. It's undefined behavior if you modify the container.\n", errout.str());
80
+
ASSERT_EQUALS("[test.cpp:4]: (error) BOOST_FOREACH caches the end() iterator. It's undefined behavior if you modify the container inside.\n", errout.str());
81
81
82
82
// Check single line usage
83
83
check("void f() {\n"
84
84
" set<int> data;\n"
85
85
" BOOST_FOREACH(const int &i, data)\n"
86
86
" data.clear();\n"
87
87
"}");
88
-
ASSERT_EQUALS("[test.cpp:4]: (error) BOOST_FOREACH caches the end() iterator. It's undefined behavior if you modify the container.\n", errout.str());
88
+
ASSERT_EQUALS("[test.cpp:4]: (error) BOOST_FOREACH caches the end() iterator. It's undefined behavior if you modify the container inside.\n", errout.str());
89
89
90
90
// Container returned as result of a function -> Be quiet
0 commit comments