Skip to content

Commit b33c962

Browse files
committed
Update tests fixing contributor PR
1 parent ccc671b commit b33c962

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

tests/repl/import.check

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
scala> import collection.mutable._
22
import collection.mutable._
33
scala> val buf = new ListBuffer[Int]
4-
buf: scala.collection.mutable.ListBuffer[Int] = ListBuffer()
4+
val buf: scala.collection.mutable.ListBuffer[Int] = ListBuffer()
55
scala> buf += 22
6-
res0: scala.collection.mutable.ListBuffer[Int] = ListBuffer(22)
6+
val res0: scala.collection.mutable.ListBuffer[Int] = ListBuffer(22)
77
scala> buf ++= List(1, 2, 3)
8-
res1: scala.collection.mutable.ListBuffer[Int] = ListBuffer(22, 1, 2, 3)
8+
val res1: scala.collection.mutable.ListBuffer[Int] = ListBuffer(22, 1, 2, 3)
99
scala> buf.toList
10-
res2: scala.collection.immutable.List[Int] = List(22, 1, 2, 3)
10+
val res2: scala.collection.immutable.List[Int] = List(22, 1, 2, 3)
1111
scala> :quit

tests/repl/imports.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
scala> import scala.collection.mutable
22
import scala.collection.mutable
33
scala> val buf = mutable.ListBuffer[Int]()
4-
buf: scala.collection.mutable.ListBuffer[Int] = ListBuffer()
4+
val buf: scala.collection.mutable.ListBuffer[Int] = ListBuffer()
55
scala> object o { val xs = List(1, 2, 3) }
66
defined module o
77
scala> import o._
@@ -14,7 +14,7 @@ scala> buf += xs
1414
| required: String
1515
|
1616
scala> buf ++= xs
17-
res1: scala.collection.mutable.ListBuffer[Int] = ListBuffer(1, 2, 3)
17+
val res1: scala.collection.mutable.ListBuffer[Int] = ListBuffer(1, 2, 3)
1818
scala> import util.foo
1919
-- Error: <console> ------------------------------------------------------------
2020
8 |import util.foo

tests/repl/onePlusOne.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
scala> 1+1
2-
res0: Int = 2
2+
val res0: Int = 2
33
scala> :quit

tests/repl/patdef.check

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
scala> val Const,x = 0
2-
Const: Int = 0
3-
x: Int = 0
1+
scala> val Const, x = 0
2+
val Const: Int = 0
3+
val x: Int = 0
44
scala> val (Const, List(`x`, _, a), b) = (0, List(0, 1337, 1), 2)
5-
a: Int = 1
6-
b: Int = 2
5+
val a: Int = 1
6+
val b: Int = 2
77
scala> val a@b = 0
8-
a: Int @unchecked = 0
9-
b: Int @unchecked = 0
8+
val a: Int @unchecked = 0
9+
val b: Int @unchecked = 0
1010
scala> :quit

tests/repl/toplevelTry.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
scala> try { 0 } catch { _: Throwable => 1 }
2-
res0: Int = 0
2+
val res0: Int = 0
33
scala> :quit

tests/repl/vars.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
scala> var x = 0
2-
x: Int = 0
2+
var x: Int = 0
33
scala> x = x + 1
44
x: Int = 1
55
scala> x *= 2
66
scala> x
7-
res2: Int = 2
7+
val res2: Int = 2
88
scala> :quit

0 commit comments

Comments
 (0)