summaryrefslogtreecommitdiff
path: root/test/unit/context/cdmap_black.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/context/cdmap_black.h')
-rw-r--r--test/unit/context/cdmap_black.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/unit/context/cdmap_black.h b/test/unit/context/cdmap_black.h
index 2d2b3f409..1cb7e50e7 100644
--- a/test/unit/context/cdmap_black.h
+++ b/test/unit/context/cdmap_black.h
@@ -164,9 +164,9 @@ class CDMapBlack : public CxxTest::TestSuite {
ElementsAre(map, {{1, 2}, {3, 4}, {5, 6}, {9, 8}, {23, 317}}));
TS_ASSERT_THROWS(map.insertAtContextLevelZero(23, 317),
- AssertionException);
+ AssertionException&);
TS_ASSERT_THROWS(map.insertAtContextLevelZero(23, 472),
- AssertionException);
+ AssertionException&);
map.insert(23, 472);
TS_ASSERT(
@@ -178,7 +178,7 @@ class CDMapBlack : public CxxTest::TestSuite {
ElementsAre(map, {{1, 2}, {3, 4}, {5, 6}, {9, 8}, {23, 472}}));
TS_ASSERT_THROWS(map.insertAtContextLevelZero(23, 0),
- AssertionException);
+ AssertionException&);
map.insert(23, 1024);
TS_ASSERT(
@@ -194,7 +194,8 @@ class CDMapBlack : public CxxTest::TestSuite {
TS_ASSERT(
ElementsAre(map, {{3, 4}, {5, 6}, {9, 8}, {23, 317}}));
- TS_ASSERT_THROWS(map.insertAtContextLevelZero(23, 0), AssertionException);
+ TS_ASSERT_THROWS(map.insertAtContextLevelZero(23, 0),
+ AssertionException&);
map.insert(23, 477);
TS_ASSERT(
@@ -202,7 +203,7 @@ class CDMapBlack : public CxxTest::TestSuite {
d_context->pop();
}
- TS_ASSERT_THROWS(map.insertAtContextLevelZero(23, 0), AssertionException);
+ TS_ASSERT_THROWS(map.insertAtContextLevelZero(23, 0), AssertionException&);
TS_ASSERT(
ElementsAre(map, {{3, 4}, {23, 317}}));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback