Added computing and caching the sequence size

This commit is contained in:
beder
2011-09-11 16:21:36 -05:00
parent 73a47d1c1c
commit ad28ffc6f8
3 changed files with 60 additions and 10 deletions

View File

@@ -44,7 +44,8 @@ namespace Test
YAML_ASSERT(node.size() == 3);
YAML_ASSERT(node[0].as<int>() == 10);
YAML_ASSERT(node[1].as<std::string>() == "foo");
YAML_ASSERT(node[1].as<std::string>() == "monkey");
YAML_ASSERT(node[2].as<std::string>() == "monkey");
YAML_ASSERT(node.Type() == YAML::NodeType::Sequence);
return true;
}