Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Aug 21, 2023
1 parent 91d541e commit c3850ee
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ import cats.laws.discipline.arbitrary._

import munit.DisciplineSuite

class EitherTFreeSyncSuite
extends DisciplineSuite
with BaseSuite
with LowPriorityImplicits {
class EitherTFreeSyncSuite extends DisciplineSuite with BaseSuite with LowPriorityImplicits {
import FreeSyncGenerators._
import SyncTypeGenerators._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ import cats.laws.discipline.arbitrary._

import munit.DisciplineSuite

class FreeSyncSuite
extends DisciplineSuite
with BaseSuite
with LowPriorityImplicits {
class FreeSyncSuite extends DisciplineSuite with BaseSuite with LowPriorityImplicits {
import FreeSyncGenerators._
import SyncTypeGenerators._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ import cats.laws.discipline.arbitrary._

import munit.DisciplineSuite

class IorTFreeSyncSuite
extends DisciplineSuite
with BaseSuite
with LowPriorityImplicits {
class IorTFreeSyncSuite extends DisciplineSuite with BaseSuite with LowPriorityImplicits {
import FreeSyncGenerators._
import SyncTypeGenerators._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ import cats.laws.discipline.eq._

import munit.DisciplineSuite

class KleisliFreeSyncSuite
extends DisciplineSuite
with BaseSuite
with LowPriorityImplicits {
class KleisliFreeSyncSuite extends DisciplineSuite with BaseSuite with LowPriorityImplicits {
import FreeSyncGenerators._
import SyncTypeGenerators._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ class KleisliPureConcSuite
OutcomeGenerators.cogenOutcome[Kleisli[TimeT[PureConc[Int, *], *], MiniInt, *], Int, A]

override def scalaCheckTestParameters =
super.scalaCheckTestParameters
// we need to bound this a little tighter because these tests take FOREVER
super
.scalaCheckTestParameters
// we need to bound this a little tighter because these tests take FOREVER
.withMinSuccessfulTests(25)

checkAll(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ class OptionTPureConcSuite extends DisciplineSuite with BaseSuite {
bO => bO.flatten.fold(false)(_ => true)
))

test("optiont bracket forward completed zeros on to the handler") {
var observed = false
test("optiont bracket forward completed zeros on to the handler") {
var observed = false

val test = OptionT.none[PureConc[Int, *], Unit] guaranteeCase {
case Outcome.Succeeded(fa) =>
observed = true
val test = OptionT.none[PureConc[Int, *], Unit] guaranteeCase {
case Outcome.Succeeded(fa) =>
observed = true

OptionT(fa.value.map(assertEquals(_, None)).as(None))
OptionT(fa.value.map(assertEquals(_, None)).as(None))

case _ => Applicative[OptionT[PureConc[Int, *], *]].unit
}
case _ => Applicative[OptionT[PureConc[Int, *], *]].unit
}

assert(pure.run(test.value) === Outcome.Succeeded(Some(Option.empty[Unit])))
assert(pure.run(test.value) === Outcome.Succeeded(Some(Option.empty[Unit])))

assert(observed)
assert(observed)
}

checkAll(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ import org.scalacheck.{Cogen, Prop}

import munit.DisciplineSuite

class ResourcePureConcSuite
extends DisciplineSuite
with BaseSuite
with TestInstances {
class ResourcePureConcSuite extends DisciplineSuite with BaseSuite with TestInstances {
import PureConcGenerators._
import OutcomeGenerators._
import pure._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ import cats.laws.discipline.arbitrary._

import munit.DisciplineSuite

class StateTFreeSyncSuite
extends DisciplineSuite
with BaseSuite
with LowPriorityImplicits {
class StateTFreeSyncSuite extends DisciplineSuite with BaseSuite with LowPriorityImplicits {
import FreeSyncGenerators._
import SyncTypeGenerators._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ import cats.laws.discipline.arbitrary._

import munit.DisciplineSuite

class WriterTFreeSyncSuite
extends DisciplineSuite
with BaseSuite
with LowPriorityImplicits {
class WriterTFreeSyncSuite extends DisciplineSuite with BaseSuite with LowPriorityImplicits {
import FreeSyncGenerators._
import SyncTypeGenerators._

Expand Down

0 comments on commit c3850ee

Please sign in to comment.