diff options
author | Ruediger Klaehn <rklaehn@gmail.com> | 2014-01-20 21:37:21 +0100 |
---|---|---|
committer | Ruediger Klaehn <rklaehn@gmail.com> | 2014-01-20 23:42:16 +0100 |
commit | 7f65b37a30cb0162711e3889edd35b2608ffa729 (patch) | |
tree | a02c7fc1bad6ddb5e5f15b9435eb8bff8f51cc59 /test/files/run/t7445.scala | |
parent | 8f6f4032b5c026fd9301cebe28dde5bb7c8e264c (diff) | |
download | scala-7f65b37a30cb0162711e3889edd35b2608ffa729.tar.gz scala-7f65b37a30cb0162711e3889edd35b2608ffa729.tar.bz2 scala-7f65b37a30cb0162711e3889edd35b2608ffa729.zip |
SI-7445 ListMap.tail is returning wrong result
Reverted the commit that introduced the bug, and modified HashMap to no
longer assume that tail is O(1).
Review by @Ichoran, @soc
Diffstat (limited to 'test/files/run/t7445.scala')
-rw-r--r-- | test/files/run/t7445.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/t7445.scala b/test/files/run/t7445.scala new file mode 100644 index 0000000000..e4ffeb8e1a --- /dev/null +++ b/test/files/run/t7445.scala @@ -0,0 +1,6 @@ +import scala.collection.immutable.ListMap + +object Test extends App { + val a = ListMap(1 -> 1, 2 -> 2, 3 -> 3, 4 -> 4, 5 -> 5); + require(a.tail == ListMap(2 -> 2, 3 -> 3, 4 -> 4, 5 -> 5)); +} |