summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-20 07:45:21 +0000
committerPaul Phillips <paulp@improving.org>2010-10-20 07:45:21 +0000
commit842ec522a2b8bb4fa9161c595f36efe502b9a1e0 (patch)
tree93e0a5146944d70dced3a775e7e6530c7a395483 /test
parent9066ffa93eee761b2bfdb0953d9fe695402de425 (diff)
downloadscala-842ec522a2b8bb4fa9161c595f36efe502b9a1e0.tar.gz
scala-842ec522a2b8bb4fa9161c595f36efe502b9a1e0.tar.bz2
scala-842ec522a2b8bb4fa9161c595f36efe502b9a1e0.zip
Fix involving xml equality, contributed by mark...
Fix involving xml equality, contributed by mark harrah. Closes #3886, no review.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t3886.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t3886.scala b/test/files/run/t3886.scala
new file mode 100644
index 0000000000..1e8e7ad252
--- /dev/null
+++ b/test/files/run/t3886.scala
@@ -0,0 +1,11 @@
+object Test {
+ def main(args: Array[String]) {
+ assert( <k a="1" b="2"/> == <k a="1" b="2"/> )
+ assert( <k a="1" b="2"/> != <k a="1" b="3"/> )
+ assert( <k a="1" b="2"/> != <k a="2" b="2"/> )
+
+ assert( <k a="1" b="2"/> != <k/> )
+ assert( <k a="1" b="2"/> != <k a="1"/> )
+ assert( <k a="1" b="2"/> != <k b="2"/> )
+ }
+}