[run_set] add another unit test

This commit is contained in:
Joe Thornber 2013-07-09 11:24:19 +01:00
parent 8523314a7f
commit 2709629313

View File

@ -239,6 +239,16 @@ TEST_F(RunSetTests, negate_single)
ASSERT_THAT(++(++rs.begin()), Eq(rs.end()));
}
TEST_F(RunSetTests, negate_single2)
{
run_set<unsigned> rs;
rs.add(23);
rs.negate();
ASSERT_THAT(*rs.begin(), EqOpenBegin(23));
ASSERT_THAT(*(++rs.begin()), EqOpenEnd(24));
ASSERT_THAT(++(++rs.begin()), Eq(rs.end()));
}
TEST_F(RunSetTests, negate_double)
{
run_set<unsigned> rs;