From cc4530fb9b7f8e353d02e5cae2e67a39edcf2d7d Mon Sep 17 00:00:00 2001 From: Dhirendra Kumar Kashyap Date: Tue, 29 Nov 2016 15:22:15 +0530 Subject: [PATCH] Update Lists.scala --- src/main/scala/stdlib/Lists.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/Lists.scala b/src/main/scala/stdlib/Lists.scala index 542c6336..88e16198 100644 --- a/src/main/scala/stdlib/Lists.scala +++ b/src/main/scala/stdlib/Lists.scala @@ -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)) }