Skip to content

Commit

Permalink
Update Lists.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhirendra Kumar Kashyap committed Nov 29, 2016
1 parent c6cd0a9 commit cc4530f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/stdlib/Lists.scala
Expand Up @@ -53,7 +53,7 @@ object Lists extends FlatSpec with Matchers with org.scalaexercises.definitions.
*/
def headAndTailLists(res0: Int, res1: Int, res2: Int) {
val a = List(1, 2, 3)
a.headOption should equal(Option(res0))
a.headOption should equal(Some(res0))
a.tail should equal(List(res1, res2))
}

Expand Down

0 comments on commit cc4530f

Please sign in to comment.