lean4-htt/tests/lean/xmlParsing.lean
kuruczgy 83c7c29075
fix: XML parsing bugs (#2601)
* fix: make XML parser handle trailing whitespace in opening tags

* fix: make XML parser handle comments correctly

---------

Co-authored-by: György Kurucz <me@kuruczgy.com>
2023-10-04 11:51:22 +11:00

10 lines
269 B
Text

import Lean.Data.Xml
open Lean.Xml
/-! Test XML parsing. -/
/-! Test whether trailing whitespace in opening tags is handled correctly. -/
#eval parse "<a ><b a=\"v\" ></b></a>"
/-! Test whether comments are parsed correctly. -/
#eval parse "<a><!-- comment --></a>"