Skip to content

Commit

Permalink
Fixed scala 2.12 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed Dec 19, 2022
1 parent 9d1f697 commit e451e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsley-cats/shared/src/test/scala/parsley/CatsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class CatsSuite extends AnyFlatSpec {
"FilterFunctor" should "adhere to laws" in {
applyLaw(filterFunctorLaws.mapFilterComposition[Char, Int, Int](
item,
c => Option.when(c.isDigit)(c.asDigit),
x => Option.when(x % 2 == 0)(x/2)))("", "a", "0", "8")
c => if (c.isDigit) Some(c.asDigit) else None,
x => if (x % 2 == 0) Some(x/2) else None))("", "a", "0", "8")
applyLaw(filterFunctorLaws.filterConsistentWithMapFilter[Char](
item,
_.isDigit))("", "a", "0", "8")
Expand Down

0 comments on commit e451e8a

Please sign in to comment.