More SGPropertyNode::getPositions tests.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user