stl: added todo test case about using same iterator with different containers

This commit is contained in:
Daniel Marjamäki 2009-04-29 17:32:38 +02:00
parent b90fdfed1d
commit 2a200cff00
1 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,8 @@ private:
{
TEST_CASE(iterator1);
TEST_CASE(iterator2);
TEST_CASE(iterator3);
TEST_CASE(STLSize);
TEST_CASE(STLSizeNoErr);
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());
}
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()
{