Implemented the map size computation

This commit is contained in:
Jesse Beder
2011-09-11 17:16:26 -05:00
parent b50264e74d
commit a03af5dd73
4 changed files with 28 additions and 5 deletions

View File

@@ -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;
}
}