From 118bbb54621a7023e326c6318e8b8737cb50993a Mon Sep 17 00:00:00 2001 From: lumi Date: Mon, 1 Jan 2018 14:28:17 +0100 Subject: [PATCH] add the spectest.xml from https://gitlab.com/lumi/minidom-rs/issues/8 --- src/element.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/element.rs b/src/element.rs index cf9ee35..1f8a190 100644 --- a/src/element.rs +++ b/src/element.rs @@ -917,3 +917,14 @@ fn test_from_reader_with_prefix() { assert_eq!(elem.unwrap(), elem2); } + +#[test] +fn parses_spectest_xml() { // From: https://gitlab.com/lumi/minidom-rs/issues/8 + let xml = r#" + + + + "#; + let mut reader = EventReader::from_str(xml); + let _ = Element::from_reader(&mut reader); +}