-
A `java.lang.ClassCastException` is raised when projecting a sample `Coproduct` obtained through a scalacheck `Arbitrary`. Example:
```scala
import iota.{ Cop, TNil }
import iota.TList.::
import…
-
Consider the following console session, with ScalaCheck 1.12.1:
``` scala
scala> import org.scalacheck.Gen
import org.scalacheck.Gen
scala> import org.scalacheck.Arbitrary._
import org.scalacheck.Ar…
-
Consider abstract out the dependency on scalacheck from cats-laws with some intermediate type class. Then we can have a new module cats-testkit-scalacheck, which is more justfiable to have different v…
-
The following test fails with a message like "! Nested.nested: Gave up after only 7 passed tests. 501 tests were discarded.".
```scala
object NestedArbitrarySpec extends Properties("Nested") {
pr…
-
ScalaCheck supports this like so:
```scala
scala> val p = Prop.forAll { (x: Int, y: Int) => (x + y) == (y + x) }
val p: org.scalacheck.Prop = Prop
scala> val q = Prop(prm => p(prm.withInitialS…
-
If someone has a `scalacheck.Gen[T]` it should be good as a `P#Source[T]`.
-
This could be useful for people that already have scalacheck tests and don't want to convert to scalatest to use them. Also, the dependencies of scalacheck are very thin.
-
```scala
import _root_.io.circe.syntax._
import org.http4s.Uri
import org.scalacheck.Prop._
import org.specs2._
import org.http4s.circe._
import org.http4s.testing.ArbitraryInstances.arbitraryUr…
-
I'm not sure what to make of it:
```scala
scala> Prop.forAll(
arbitrary[List[Int]].retryUntil(_.nonEmpty)
)(_ => true).check
! Exception raised on property evaluation.
> Exception: org.scalach…
-
Did you see what I did there?
Hedgehog is a replacement for ScalaCheck that integrates test case shrinkage with the generators, so shrunk test cases will conform to any constraints imposed by the g…