Commit ad1fd67b authored by Stephen Morris's avatar Stephen Morris
Browse files

[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.
parent 502cc85e
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment