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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user