Skip to content

Commit

Permalink
solution2.1.7.8.scala again
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Roehler <[email protected]>
  • Loading branch information
andreas-roehler committed Dec 7, 2023
1 parent 1113542 commit a08f216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter02/worksheets/solution2.1.7.8.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a08f216

Please sign in to comment.