Permalink
Browse files

Fixed res0 type in composingSemigroups test

  • Loading branch information...
1 parent a228142 commit 144f735b4e632bc4c6aa161ff214daefe0702c51 @RawToast RawToast committed Jul 17, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/main/scala/catslib/Semigroup.scala
  2. +1 −1 src/test/scala/exercises/catslib/SemigroupSpec.scala
@@ -66,7 +66,7 @@ object SemigroupSection extends FlatSpec with Matchers with exercise.Section {
* since the first version uses the Semigroup's `combine` operation, it will merge
* the map's values with `combine`.
*/
- def composingSemigroups(res0: Option[Map[String, Int]]) = {
+ def composingSemigroups(res0: Map[String, Int]) = {
import cats.implicits._
val aMap = Map("foo" Map("bar" 5))
@@ -22,7 +22,7 @@ class SemigroupSpec extends Spec with Checkers {
check(
Test.testSuccess(
SemigroupSection.composingSemigroups _,
- Option(Map("bar" 11)) :: HNil
+ Map("bar" 11) :: HNil
)
)
}

0 comments on commit 144f735

Please sign in to comment.