From 7f65b37a30cb0162711e3889edd35b2608ffa729 Mon Sep 17 00:00:00 2001 From: Ruediger Klaehn Date: Mon, 20 Jan 2014 21:37:21 +0100 Subject: 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 --- test/files/run/t6261.scala | 7 ------- 1 file changed, 7 deletions(-) (limited to 'test/files/run/t6261.scala') diff --git a/test/files/run/t6261.scala b/test/files/run/t6261.scala index b4463256c9..bf6d640de3 100644 --- a/test/files/run/t6261.scala +++ b/test/files/run/t6261.scala @@ -2,12 +2,6 @@ import scala.collection.immutable._ object Test extends App { - def test0() { - val m=ListMap(1->2,3->4) - if(m.tail ne m.tail) - println("ListMap.tail uses a builder, so it is not O(1)") - } - def test1() { // test that a HashTrieMap with one leaf element is not created! val x = HashMap.empty + (1->1) + (2->2) @@ -92,7 +86,6 @@ object Test extends App { // StructureTests.printStructure(z) require(z.size == 2 && z.contains(a._1) && z.contains(c._1)) } - test0() test1() test2() test3() -- cgit v1.2.3