More SGPropertyNode::getPositions tests.

This commit is contained in:
James Turner
2017-01-28 14:51:30 +00:00
parent 5bd7be6ed1
commit a6437f4e96

View File

@@ -304,8 +304,13 @@ test_property_nodes ()
grandchild = child->getChild("bar", 3, true);
grandchild->setDoubleValue(400);
SG_CHECK_EQUAL(grandchild->getPosition(), 3);
child = root.getChild("hack", 0, true);
SG_CHECK_EQUAL(child->getPosition(), 1);
grandchild = child->getChild("bar", 0, true);
grandchild->setDoubleValue(100);
grandchild = child->getChild("bar", 3, true);
@@ -318,6 +323,10 @@ test_property_nodes ()
grandchild->setDoubleValue(300);
grandchild = child->getChild("bar", 2, true);
grandchild->setDoubleValue(400);
SG_CHECK_EQUAL(grandchild->getPosition(), 3);
dump_node(&root);
SG_CHECK_EQUAL(child->getPosition(), 1);