Fixed in bug in vector::operator==

This commit is contained in:
Ion Gaztañaga
2014-11-09 21:06:36 +01:00
parent 652b870088
commit e6d19fb408
6 changed files with 61 additions and 6 deletions

View File

@@ -277,6 +277,20 @@ int vector_test()
}
if(!test::CheckEqualContainers(boostvector, stdvector)) return 1;
//some comparison operators
if(!(boostvector == boostvector))
return 1;
if(boostvector != boostvector)
return 1;
if(boostvector < boostvector)
return 1;
if(boostvector > boostvector)
return 1;
if(!(boostvector <= boostvector))
return 1;
if(!(boostvector >= boostvector))
return 1;
//Test insertion from list
{
std::list<int> l(50, int(1));