diff options
author | Paul Phillips <paulp@improving.org> | 2010-02-26 22:24:46 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-02-26 22:24:46 +0000 |
commit | 64fd0c1346dcd43cb814e4f99638321c159108fd (patch) | |
tree | a9cc92f5756442698813bc4d97bdf191b85b0680 /test/files/run/t1773.scala | |
parent | 462e27a358fc466d51aaeec28c994c6667d320eb (diff) | |
download | scala-64fd0c1346dcd43cb814e4f99638321c159108fd.tar.gz scala-64fd0c1346dcd43cb814e4f99638321c159108fd.tar.bz2 scala-64fd0c1346dcd43cb814e4f99638321c159108fd.zip |
Quite a lot more work on XML equality than I ca...
Quite a lot more work on XML equality than I can properly justify
spending time on, but you know how it is once you get started on
something. This commit will likely break some code out there in the
world but this is impossible to avoid if we are to achieve sane equality
in trunk.
For anyone who was relying upon the 2.7 equality behavior for
scala.xml.* classes, using "xml_==" instead of "==" for comparisons will
restore the old behavior. The standard == on xml elements now attempts
to behave in such a way that symmetry and hashCode contracts will be
preserved. It's probably not 100% there yet, but I can tell you this: it
is closer today than it was yesterday.
Review by community.
Diffstat (limited to 'test/files/run/t1773.scala')
-rw-r--r-- | test/files/run/t1773.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t1773.scala b/test/files/run/t1773.scala index 81c6005f86..4a4aaba1f0 100644 --- a/test/files/run/t1773.scala +++ b/test/files/run/t1773.scala @@ -8,5 +8,5 @@ object Test extends Application <a>{ if (true) "" else "I like turtles" }</a> ) - for (x1 <- xs; x2 <- xs) assert (x1 == x2) + for (x1 <- xs; x2 <- xs) assert (x1 xml_== x2) } |