All Downloads are FREE. Search and download functionalities are using the official Maven repository.

monocle.law.discipline.function.ReverseTests.scala Maven / Gradle / Ivy

There is a newer version: 3.0.0-M2
Show newest version
package monocle.law.discipline.function

import monocle.function.Reverse._
import monocle.function._
import monocle.law.discipline.IsoTests
import org.scalacheck.{Arbitrary, Prop}
import org.typelevel.discipline.Laws

import cats.Eq

@deprecated("no replacement", since = "3.0.0-M1")
object ReverseTests extends Laws {
  def apply[S: Eq: Arbitrary](implicit evReverse: Reverse[S, S], arbSS: Arbitrary[S => S]): RuleSet =
    apply[S, S]

  def apply[S: Eq: Arbitrary, A: Eq: Arbitrary](implicit evReverse: Reverse[S, A], arbAA: Arbitrary[A => A]): RuleSet =
    new RuleSet {
      override def name: String                  = "Reverse"
      override def bases: Seq[(String, RuleSet)] = Nil
      override def parents: Seq[RuleSet]         = Nil
      override def props: Seq[(String, Prop)] =
        IsoTests(reverse[S, A]).props
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy