From a08f216225e39bf90a57f48e085a6a106c02c0c5 Mon Sep 17 00:00:00 2001 From: Andreas Roehler Date: Thu, 7 Dec 2023 13:11:46 +0100 Subject: [PATCH] solution2.1.7.8.scala again Signed-off-by: Andreas Roehler --- chapter02/worksheets/solution2.1.7.8.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter02/worksheets/solution2.1.7.8.scala b/chapter02/worksheets/solution2.1.7.8.scala index c0c51e8..11e6055 100644 --- a/chapter02/worksheets/solution2.1.7.8.scala +++ b/chapter02/worksheets/solution2.1.7.8.scala @@ -24,6 +24,6 @@ def myMapping[P,Q](p: Seq[P], q: Seq[Q]): Map[P, Q] = { val result = myMapping(Seq( Set(true), Set(true, false), Set() ), Seq( 1.0, 2.0, 3.0)) -val expected: Map[scala.collection.immutable.Set[_ <: Boolean],Double] = Map(Set(true) -> 1.0, Set(true, false) -> 2.0, Set() -> 3.0) +val expected: Map[Set[Boolean],Double] = Map(Set(true) -> 1.0, Set(true, false) -> 2.0, Set() -> 3.0) assert(result == expected)