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

View File

@@ -212,15 +212,23 @@ void testBindings()
void testParse()
{
const char* xml = "<?xml version=\"1.0\"?>"
"<PropertyList>"
"<state>"
"<name>one</name>"
"</state>"
"<state>"
"<name>two</name>"
"</state>"
"</PropertyList>";
const char* xml = R"(<?xml version="1.0"?>
<PropertyList>
<state>
<name>one</name>
<enter>
<command>nasal</command>
<script>print('Foo');</script>
</enter>
<exit>
<command>nasal</command>
<script>print('bar');</script>
</exit>
</state>
<state>
<name>two</name>
</state>
</PropertyList>)";
SGPropertyNode* desc = new SGPropertyNode;
readProperties(xml, strlen(xml), desc);