Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 4231751

Browse files
committed
fixed up tests
1 parent 53d98e7 commit 4231751

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

test/files/neg/implicits.check

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ implicits.scala:38: error: type mismatch;
1212
required: Int
1313
foo(set)
1414
^
15-
two errors found
15+
implicits.scala:46: error: type mismatch;
16+
found : List[Any]
17+
required: scala.List[Mxml]
18+
children.toList.flatMap ( e => {
19+
^
20+
three errors found

test/files/run/arrays.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ object Test {
161161
def checkT2368() {
162162
val arr = Array(1, 2, 3)
163163
arr(0) += 1
164-
assert(arr(0) == 1)
164+
assert(arr(0) == 2)
165165
}
166166

167167
//##########################################################################

test/files/run/colltest1.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ object Test extends Application {
127127
assert(ten.patch(0, List(1, 2, 3), 9) == List(1, 2, 3, 10))
128128
assert(empty.padTo(10, 7) == Array.fill(10)(7).toSequence)
129129
assert((ten zip ten.indices) == ten.zipWithIndex)
130-
assert(ten sortWith (_ < _) == ten)
131-
assert(ten sortWith (_ > _) == ten.reverse)
130+
assert(ten.sortWith(_ < _) == ten)
131+
assert(ten.sortWith(_ > _) == ten.reverse)
132132
}
133133

134134
def setTest(empty: => Set[String]) {

0 commit comments

Comments
 (0)