Extend the state-machine parsing test slightly
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user