Skip to content

Commit 2c7be0e

Browse files
authored
Update Lists.scala
1 parent ef9f68f commit 2c7be0e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/scala/stdlib/Lists.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,10 @@ object Lists extends FlatSpec with Matchers with org.scalaexercises.definitions.
162162

163163
/** You can add elements to a List and get a new List:
164164
*/
165-
def addElementsLists(
166-
res0: List[Int],
167-
res1: List[Int]) {
165+
def addElementsLists(res0: List[Int]) {
168166
val a = List(1, 3, 5, 7)
169167

170-
0 :: a should be(res0)
171-
a :: 9 should be(res1)
168+
a :: 9 should be(res0)
172169
}
173170

174171
/** Lists can be concatened and Nil is an empty List:

0 commit comments

Comments
 (0)