Extend the state-machine parsing test slightly

This commit is contained in:
James Turner
2017-09-27 14:33:57 +01:00
parent 721aa544c9
commit 872a48dacb
+17 -9
View File
@@ -212,15 +212,23 @@ void testBindings()
void testParse() void testParse()
{ {
const char* xml = "<?xml version=\"1.0\"?>" const char* xml = R"(<?xml version="1.0"?>
"<PropertyList>" <PropertyList>
"<state>" <state>
"<name>one</name>" <name>one</name>
"</state>" <enter>
"<state>" <command>nasal</command>
"<name>two</name>" <script>print('Foo');</script>
"</state>" </enter>
"</PropertyList>"; <exit>
<command>nasal</command>
<script>print('bar');</script>
</exit>
</state>
<state>
<name>two</name>
</state>
</PropertyList>)";
SGPropertyNode* desc = new SGPropertyNode; SGPropertyNode* desc = new SGPropertyNode;
readProperties(xml, strlen(xml), desc); readProperties(xml, strlen(xml), desc);