diff options
author | Burak Emir <emir@epfl.ch> | 2007-09-14 16:54:11 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-09-14 16:54:11 +0000 |
commit | 4c74083c14c959370dd69dd6a745f56354143998 (patch) | |
tree | 7f5fe66047e83a569ac4e8471f8a958dabd71616 /test/files | |
parent | ab7d775228d75c5d721237682de5113343e0cf18 (diff) | |
download | scala-4c74083c14c959370dd69dd6a745f56354143998.tar.gz scala-4c74083c14c959370dd69dd6a745f56354143998.tar.bz2 scala-4c74083c14c959370dd69dd6a745f56354143998.zip |
fixed #60 ampersand in xml
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/xml01.check | 1 | ||||
-rw-r--r-- | test/files/jvm/xml01.scala | 7 |
2 files changed, 8 insertions, 0 deletions
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("<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) + } + } |