Renamed append -> push_back (to play nice with STL algorithms

This commit is contained in:
beder
2012-01-21 12:11:40 -06:00
parent 5647711578
commit 8d0ee05dbe
9 changed files with 18 additions and 18 deletions

View File

@@ -40,9 +40,9 @@ namespace Test
TEST SimpleAppendSequence()
{
YAML::Node node;
node.append(10);
node.append("foo");
node.append("monkey");
node.push_back(10);
node.push_back("foo");
node.push_back("monkey");
YAML_ASSERT(node.IsSequence());
YAML_ASSERT(node.size() == 3);
YAML_ASSERT(node[0].as<int>() == 10);