Skip to content
Permalink
Browse files

Update cats-core, cats-testkit to 2.0.0 (#117)

* Update cats-core, cats-testkit to 2.0.0

* wip
  • Loading branch information...
scala-steward authored and notxcain committed Sep 17, 2019
1 parent 12bf54c commit 698601602a4fb4bf8dc4bff77994cd91808ea552
Showing with 19 additions and 6 deletions.
  1. +7 −3 build.sbt
  2. +12 −3 modules/tests/src/test/scala/aecor/tests/FoldedTests.scala
@@ -12,7 +12,7 @@ lazy val akkaVersion = "2.5.25"
lazy val akkaPersistenceCassandraVersion = "0.62"

lazy val apacheKafkaClientsVersion = "2.3.0"
lazy val catsVersion = "2.0.0-M4"
lazy val catsVersion = "2.0.0"
lazy val catsEffectVersion = "2.0.0-M5"

lazy val logbackVersion = "1.2.3"
@@ -28,8 +28,10 @@ lazy val scodecCoreVersion = "1.11.4"
lazy val catsTaglessVersion = "0.9"

lazy val scalaCheckVersion = "1.14.0"
lazy val scalaTestVersion = "3.0.8"
lazy val scalaTestVersion = "3.1.0-SNAP13"
lazy val scalatestplusScalaCheckVersion = "1.0.0-SNAP8"
lazy val scalaCheckShapelessVersion = "1.2.3"
lazy val disciplineVersion = "0.12.0-M3"
lazy val embeddedKafkaVersion = "2.3.0"
lazy val shapelessVersion = "2.3.3"
lazy val kindProjectorVersion = "0.10.3"
@@ -262,7 +264,9 @@ lazy val commonTestSettings = Seq(
"org.scalacheck" %% "scalacheck" % scalaCheckVersion % Test,
"org.scalatest" %% "scalatest" % scalaTestVersion % Test,
"com.github.alexarchambault" %% "scalacheck-shapeless_1.14" % scalaCheckShapelessVersion % Test,
"org.typelevel" %% "cats-testkit" % catsVersion % Test
"org.scalatestplus" %% "scalatestplus-scalacheck" % scalatestplusScalaCheckVersion % Test,
"org.typelevel" %% "discipline-scalatest" % disciplineVersion % Test,
"org.typelevel" %% "cats-laws" % catsVersion % Test
)
)

@@ -5,10 +5,19 @@ import cats.{ CoflatMap, Eval, Later, Monad, MonadError, Semigroupal }
import cats.laws.{ ApplicativeLaws, CoflatMapLaws, FlatMapLaws, MonadLaws }
import cats.laws.discipline._
import Folded.syntax._
import cats.tests.CatsSuite
import org.scalacheck.{ Arbitrary, Cogen }

class FoldedTests extends CatsSuite {
import org.scalatest.Matchers
import org.scalatest.funsuite.AnyFunSuiteLike
import org.scalatestplus.scalacheck.ScalaCheckDrivenPropertyChecks
import org.typelevel.discipline.scalatest.Discipline
import cats.implicits._

class FoldedTests
extends AnyFunSuiteLike
with Matchers
with ScalaCheckDrivenPropertyChecks
with Discipline
with StrictCatsEquality {

implicit def arbitraryFolded[A](implicit A: Arbitrary[Option[A]]): Arbitrary[Folded[A]] =
Arbitrary(A.arbitrary.map(_.map(_.next).getOrElse(impossible)))

0 comments on commit 6986016

Please sign in to comment.
You can’t perform that action at this time.