From 4c74083c14c959370dd69dd6a745f56354143998 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Fri, 14 Sep 2007 16:54:11 +0000 Subject: fixed #60 ampersand in xml --- test/files/jvm/xml01.check | 1 + test/files/jvm/xml01.scala | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'test/files/jvm') diff --git a/test/files/jvm/xml01.check b/test/files/jvm/xml01.check index 2a8d2e5625..cafdd6e2fc 100644 --- a/test/files/jvm/xml01.check +++ b/test/files/jvm/xml01.check @@ -28,3 +28,4 @@ passed ok attribute value normalization passed ok passed ok +passed ok 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(""),true) + val n = p.element(new scala.xml.NamespaceBinding("bar","BAR",scala.xml.TopScope))(0) + assertFalse( n.attributes.get("BAR", n, "attr").isEmpty) + } + } -- cgit v1.2.3