stl: added todo test case about using same iterator with different containers
This commit is contained in:
parent
b90fdfed1d
commit
2a200cff00
|
@ -37,6 +37,8 @@ private:
|
||||||
{
|
{
|
||||||
TEST_CASE(iterator1);
|
TEST_CASE(iterator1);
|
||||||
TEST_CASE(iterator2);
|
TEST_CASE(iterator2);
|
||||||
|
TEST_CASE(iterator3);
|
||||||
|
|
||||||
TEST_CASE(STLSize);
|
TEST_CASE(STLSize);
|
||||||
TEST_CASE(STLSizeNoErr);
|
TEST_CASE(STLSizeNoErr);
|
||||||
TEST_CASE(erase);
|
TEST_CASE(erase);
|
||||||
|
@ -95,6 +97,16 @@ private:
|
||||||
ASSERT_EQUALS("[test.cpp:3]: (error) Same iterator is used with both foo and bar\n", errout.str());
|
ASSERT_EQUALS("[test.cpp:3]: (error) Same iterator is used with both foo and bar\n", errout.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void iterator3()
|
||||||
|
{
|
||||||
|
check("void foo()\n"
|
||||||
|
"{\n"
|
||||||
|
" i = l1.begin();\n"
|
||||||
|
" l2.insert(i, 0);\n"
|
||||||
|
"}\n");
|
||||||
|
TODO_ASSERT_EQUALS("[test.cpp:4]: (error) Same iterator is used with both foo and bar\n", errout.str());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void STLSize()
|
void STLSize()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue