Skip to content
Snippets Groups Projects
Commit 6a83460b authored by Jan Trávníček's avatar Jan Trávníček
Browse files

test insert with move iterator

parent 6e06f84e
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -58,3 +58,15 @@ void SetTest::test3() {
CPPUNIT_ASSERT(copies == 0);
}
 
void SetTest::test4() {
int moves;
int copies;
std::set<SetTest::Moveable> set;
set.insert ( SetTest::Moveable(moves, copies) );
std::set<SetTest::Moveable> set2;
set2.insert ( std::make_moveable_set ( set ).begin ( ), std::make_moveable_set ( set ).end ( ) );
CPPUNIT_ASSERT(copies == 0);
}
......@@ -9,6 +9,7 @@ class SetTest : public CppUnit::TestFixture
CPPUNIT_TEST( test1 );
CPPUNIT_TEST( test2 );
CPPUNIT_TEST( test3 );
CPPUNIT_TEST( test4 );
CPPUNIT_TEST_SUITE_END();
 
public:
......@@ -42,6 +43,7 @@ public:
void test1();
void test2();
void test3();
void test4();
};
 
#endif // SET_TEST_H_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment