2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[1470] Update test for the const removeIdentical() method

A previous change updated the test for removeIdentical().  This
change was omitted from the test for the const version.
This commit is contained in:
Stephen Morris
2011-12-16 15:07:34 +00:00
parent 502cc85e6d
commit ad1fd67bc7

View File

@@ -573,6 +573,11 @@ TEST(Element, constRemoveIdentical) {
c = Element::fromJSON("{ \"a\": { \"b\": \"c\" } }");
EXPECT_EQ(*removeIdentical(a, b), *c);
a = Element::fromJSON("{ \"a\": 1, \"b\": 2, \"c\": 3 }");
b = Element::fromJSON("{ \"c\": 3, \"b\": 2 }");
c = Element::fromJSON("{ \"a\": 1 }");
EXPECT_EQ(*removeIdentical(a, b), *c);
EXPECT_THROW(removeIdentical(Element::create(1), Element::create(2)),
TypeError);
}