diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-02-15 14:47:08 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-02-15 14:47:08 -0800 |
commit | be475e16295409cdd7218bb971b7e80048e3ee4f (patch) | |
tree | 69107e8e623e9b5b06eca54ba527ce16baa03f9f /test | |
parent | d0e752b82c633e3d86ff3228db13ee1578e2ee9e (diff) | |
parent | 326fa9ac4bb96a042733ad5c96ffee163895df5d (diff) | |
download | scala-be475e16295409cdd7218bb971b7e80048e3ee4f.tar.gz scala-be475e16295409cdd7218bb971b7e80048e3ee4f.tar.bz2 scala-be475e16295409cdd7218bb971b7e80048e3ee4f.zip |
Merge pull request #3527 from Ichoran/issue/8264
SI-8264 scala.collection.immutable.HashSet#- returns broken Set
Diffstat (limited to 'test')
-rw-r--r-- | test/junit/scala/collection/SetMapConsistencyTest.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/junit/scala/collection/SetMapConsistencyTest.scala b/test/junit/scala/collection/SetMapConsistencyTest.scala index 0d6f43db06..eed6007eef 100644 --- a/test/junit/scala/collection/SetMapConsistencyTest.scala +++ b/test/junit/scala/collection/SetMapConsistencyTest.scala @@ -507,4 +507,11 @@ class SetMapConsistencyTest { case _ => true }) } + + @Test + def testSI8264() { + val hs = Set(-2147483648, 1, -45023380, -1, 1971207058, -54312241, -234243394) - -1 + assert( hs.toList.toSet == hs ) + assert( hs == hs.toList.toSet ) + } } |