From 4231751ecf81819f9e973df817c884158014fa51 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 28 Sep 2009 12:15:42 +0000 Subject: fixed up tests --- test/files/neg/implicits.check | 7 ++++++- test/files/run/arrays.scala | 2 +- test/files/run/colltest1.scala | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'test/files') diff --git a/test/files/neg/implicits.check b/test/files/neg/implicits.check index e7ef03b387..d94e1f27f2 100644 --- a/test/files/neg/implicits.check +++ b/test/files/neg/implicits.check @@ -12,4 +12,9 @@ implicits.scala:38: error: type mismatch; required: Int foo(set) ^ -two errors found +implicits.scala:46: error: type mismatch; + found : List[Any] + required: scala.List[Mxml] + children.toList.flatMap ( e => { + ^ +three errors found diff --git a/test/files/run/arrays.scala b/test/files/run/arrays.scala index e8a984dc1b..cd1cf13793 100644 --- a/test/files/run/arrays.scala +++ b/test/files/run/arrays.scala @@ -161,7 +161,7 @@ object Test { def checkT2368() { val arr = Array(1, 2, 3) arr(0) += 1 - assert(arr(0) == 1) + assert(arr(0) == 2) } //########################################################################## diff --git a/test/files/run/colltest1.scala b/test/files/run/colltest1.scala index 7069c052a5..ea8ff8e305 100644 --- a/test/files/run/colltest1.scala +++ b/test/files/run/colltest1.scala @@ -127,8 +127,8 @@ object Test extends Application { assert(ten.patch(0, List(1, 2, 3), 9) == List(1, 2, 3, 10)) assert(empty.padTo(10, 7) == Array.fill(10)(7).toSequence) assert((ten zip ten.indices) == ten.zipWithIndex) - assert(ten sortWith (_ < _) == ten) - assert(ten sortWith (_ > _) == ten.reverse) + assert(ten.sortWith(_ < _) == ten) + assert(ten.sortWith(_ > _) == ten.reverse) } def setTest(empty: => Set[String]) { -- cgit v1.2.3