From 8a64f16fe1af955d11bce887a56fe07aecd0a791 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 10 Apr 2011 02:18:08 +0000 Subject: More fun with xml and elements not appearing eq... More fun with xml and elements not appearing equal. Closes #4387, no review. --- test/files/run/bug4387.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/run/bug4387.scala (limited to 'test/files/run') 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) = + + val x1 = mkElem("5") + val x2 = mkElem("50") + + def main(args: Array[String]): Unit = { + assert(x1 == loadString("" + x1)) + assert(x2 != loadString("" + x1)) + } +} -- cgit v1.2.3