diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-10 02:18:08 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-10 02:18:08 +0000 |
commit | 8a64f16fe1af955d11bce887a56fe07aecd0a791 (patch) | |
tree | 19de1a721286725db208dde4fff39245182f6c34 /test/files/run | |
parent | 8a2df2dc7066210d6db00c42bf9312b8c237b0f7 (diff) | |
download | scala-8a64f16fe1af955d11bce887a56fe07aecd0a791.tar.gz scala-8a64f16fe1af955d11bce887a56fe07aecd0a791.tar.bz2 scala-8a64f16fe1af955d11bce887a56fe07aecd0a791.zip |
More fun with xml and elements not appearing eq...
More fun with xml and elements not appearing equal. Closes #4387, no
review.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/bug4387.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/bug4387.scala b/test/files/run/bug4387.scala new file mode 100644 index 0000000000..f51c9b0572 --- /dev/null +++ b/test/files/run/bug4387.scala @@ -0,0 +1,12 @@ +object Test { + import xml.XML.loadString + def mkElem(arg: String) = <foo a="1" b="2" c="3" d="4" e={arg} /> + + val x1 = mkElem("5") + val x2 = mkElem("50") + + def main(args: Array[String]): Unit = { + assert(x1 == loadString("" + x1)) + assert(x2 != loadString("" + x1)) + } +} |