mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Update node_data::remove to use new equals() method
- Update the call to equals() in node_data::remove() to match the new implementation - Add unit test for node::remove() to catch this type of bug in the future
This commit is contained in:
@@ -39,6 +39,13 @@ TEST(NodeTest, SimpleAppendSequence) {
|
||||
EXPECT_TRUE(node.IsSequence());
|
||||
}
|
||||
|
||||
TEST(NodeTest, MapElementRemoval) {
|
||||
Node node;
|
||||
node["foo"] = "bar";
|
||||
node.remove("foo");
|
||||
EXPECT_TRUE(!node["foo"]);
|
||||
}
|
||||
|
||||
TEST(NodeTest, SimpleAssignSequence) {
|
||||
Node node;
|
||||
node[0] = 10;
|
||||
|
Reference in New Issue
Block a user