Skip to content

Commit

Permalink
unit test: new case for same tag on the same level in the tree
Browse files Browse the repository at this point in the history
  • Loading branch information
kokan authored and furiel committed Sep 15, 2017
1 parent 2eb1c6a commit 5e630c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/xml/tests/test_xml_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ ParameterizedTestParameters(xmlparser, valid_inputs)
{"<tag1><tag11></tag11><tag12><tag121>value</tag121></tag12></tag1>", ".xml.tag1.tag12.tag121", "value"},
{"<tag1><tag11></tag11><tag12><tag121 attr1='1' attr2='2'>value</tag121></tag12></tag1>", ".xml.tag1.tag12.tag121._attr1", "1"},
{"<tag1><tag11></tag11><tag12><tag121 attr1='1' attr2='2'>value</tag121></tag12></tag1>", ".xml.tag1.tag12.tag121._attr2", "2"},
{"<tag1><tag1>t11.1</tag1><tag1>t11.2</tag1></tag1>", ".xml.tag1.tag1", "t11.1t11.2"},
};

return cr_make_param_array(ValidXMLTestCase, test_cases, sizeof(test_cases) / sizeof(test_cases[0]));
Expand Down

0 comments on commit 5e630c3

Please sign in to comment.