Skip to content

Commit

Permalink
Add Another XML comment test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian Larsson committed Feb 3, 2025
1 parent eb04b8a commit 035a62d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/stdlib_tests/src/test_xml.act
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ def _test_xml_skip_comment():
d = xml.decode(test_xml)
e = xml.encode(d)
testing.assertEqual(e, "<a><b>hello</b></a>", "XML str -> data -> XML str (remove comment)")

def _test_xml_skip_comment_first():
test_xml = """<!-- comment --><a>woo</a>"""
d = xml.decode(test_xml)
e = xml.encode(d)
testing.assertEqual(e, "<a>woo</a>", "XML str -> data -> XML str (remove comment first)")

0 comments on commit 035a62d

Please sign in to comment.