mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Implemented the map size computation
This commit is contained in:
@@ -67,6 +67,9 @@ namespace Test
|
||||
YAML_ASSERT(node.Type() == YAML::NodeType::Map);
|
||||
YAML_ASSERT(node["key"].as<std::string>() == "value");
|
||||
YAML_ASSERT(node.size() == 1);
|
||||
node["undefined"] = "monkey";
|
||||
YAML_ASSERT(node["undefined"].as<std::string>() == "monkey");
|
||||
YAML_ASSERT(node.size() == 2);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user