diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/stringbuilder.scala | 4 | ||||
-rw-r--r-- | test/files/run/randomAccessSeq-apply.scala | 2 | ||||
-rw-r--r-- | test/files/run/t1524.scala | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/files/jvm/stringbuilder.scala b/test/files/jvm/stringbuilder.scala index bacd13c715..c86a8a7713 100644 --- a/test/files/jvm/stringbuilder.scala +++ b/test/files/jvm/stringbuilder.scala @@ -53,7 +53,7 @@ object Test2 extends TestCase("append") with Assert { val j1 = new java.lang.StringBuilder // Java 1.5+ val s1 = new StringBuilder j1 append "###" append Array('0', '1', '2') append "xyz".subSequence(0, 3) - s1 append "###" append Array('0', '1', '2') append List('x', 'y', 'z') + s1 append "###" appendAll Array('0', '1', '2') appendAll List('x', 'y', 'z') assertEquals("s1.toString equals j1.toString", true, s1.toString equals j1.toString) } } @@ -72,7 +72,7 @@ object Test3 extends TestCase("insert") with Assert { val j1 = new java.lang.StringBuilder // Java 1.5+ val s1 = new StringBuilder j1 insert (0, "###") insert (0, Array('0', '1', '2')) insert (0, "xyz".subSequence(0, 3)) - s1 insert (0, "###") insert (0, Array('0', '1', '2')) insert (0, List('x', 'y', 'z')) + s1 insert (0, "###") insertAll (0, Array('0', '1', '2')) insertAll (0, List('x', 'y', 'z')) //println("j1="+j1+", s1="+s1)//debug assertEquals("s1.toString equals j1.toString", true, s1.toString equals j1.toString) diff --git a/test/files/run/randomAccessSeq-apply.scala b/test/files/run/randomAccessSeq-apply.scala index 863a4d42a2..1f74050bb7 100644 --- a/test/files/run/randomAccessSeq-apply.scala +++ b/test/files/run/randomAccessSeq-apply.scala @@ -6,7 +6,7 @@ object Test extends Application { assert(List(1) == single.toList) val two = RandomAccessSeq("a", "b") - assert("a" == two.first) + assert("a" == two.head) assert("b" == two.apply(1)) println("OK") diff --git a/test/files/run/t1524.scala b/test/files/run/t1524.scala index ecd90adec7..4f6c65d052 100644 --- a/test/files/run/t1524.scala +++ b/test/files/run/t1524.scala @@ -3,5 +3,5 @@ object Test extends Application { val buf = new scala.collection.mutable.ArrayBuffer[String] { override val initialSize = 0 } buf += "initial" buf += "second" - println(buf.first) + println(buf.head) } |