Skip to content

Commit

Permalink
fix formatting in OptionTSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
ybasket committed Mar 12, 2020
1 parent ff699db commit f5d0419
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/src/test/scala/cats/tests/OptionTSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,14 @@ class OptionTSuite extends CatsSuite {
test("flatTapNone runs the effect") {
type TestEffect[A] = State[List[Int], A]
forAll { (optiont: OptionT[TestEffect, Int], f: TestEffect[Int], initial: List[Int]) =>
optiont.flatTapNone(f).value.runS(initial) should ===(optiont.value.flatTap {
case Some(v) => v.pure[TestEffect]
case None => f
}.runS(initial))
optiont.flatTapNone(f).value.runS(initial) should ===(
optiont.value
.flatTap {
case Some(v) => v.pure[TestEffect]
case None => f
}
.runS(initial)
)
}
}

Expand Down

0 comments on commit f5d0419

Please sign in to comment.