diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/arrays.scala | 2 | ||||
-rw-r--r-- | test/files/run/colltest1.scala | 4 |
2 files changed, 3 insertions, 3 deletions
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]) { |