From 27096293136528dd25d190ab6cc8dbf103ef90df Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 9 Jul 2013 11:24:19 +0100 Subject: [PATCH] [run_set] add another unit test --- unit-tests/run_set_t.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/unit-tests/run_set_t.cc b/unit-tests/run_set_t.cc index 01a3cbb..abe201c 100644 --- a/unit-tests/run_set_t.cc +++ b/unit-tests/run_set_t.cc @@ -239,6 +239,16 @@ TEST_F(RunSetTests, negate_single) ASSERT_THAT(++(++rs.begin()), Eq(rs.end())); } +TEST_F(RunSetTests, negate_single2) +{ + run_set 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 rs;