diff options
Diffstat (limited to 'test/files/jvm/xml01.scala')
-rw-r--r-- | test/files/jvm/xml01.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/jvm/xml01.scala b/test/files/jvm/xml01.scala index 7de6211e29..1f69e6969a 100644 --- a/test/files/jvm/xml01.scala +++ b/test/files/jvm/xml01.scala @@ -220,7 +220,14 @@ object Test { assertTrue(c == '\u015e'); } + // #60 test by round trip + + val p = scala.xml.parsing.ConstructingParser.fromSource(scala.io.Source.fromString("<foo bar:attr='&'/>"),true) + val n = p.element(new scala.xml.NamespaceBinding("bar","BAR",scala.xml.TopScope))(0) + assertFalse( n.attributes.get("BAR", n, "attr").isEmpty) + } + } |