mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Renamed append -> push_back (to play nice with STL algorithms
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user