Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter from Reflexitivity to Reflexivity #2672

Merged
merged 1 commit into from
Feb 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kernel-laws/src/main/scala/cats/kernel/laws/EqLaws.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trait EqLaws[A] {

implicit def E: Eq[A]

def reflexitivityEq(x: A): IsEq[A] =
def reflexivityEq(x: A): IsEq[A] =
x <-> x

def symmetryEq(x: A, y: A): IsEq[Boolean] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import cats.kernel.instances.option._
trait PartialOrderLaws[A] extends EqLaws[A] {
override implicit def E: PartialOrder[A]

def reflexitivityLt(x: A): IsEq[Boolean] =
def reflexivityLt(x: A): IsEq[Boolean] =
E.lteqv(x, x) <-> true

def reflexitivityGt(x: A): IsEq[Boolean] =
def reflexivityGt(x: A): IsEq[Boolean] =
E.gteqv(x, x) <-> true

def antisymmetry(x: A, y: A): IsEq[Boolean] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ trait EqTests[A] extends Laws {
new DefaultRuleSet(
"eq",
None,
"reflexitivity" -> forAll(laws.reflexitivityEq _),
"reflexivity" -> forAll(laws.reflexivityEq _),
"symmetry" -> forAll(laws.symmetryEq _),
"antisymmetry" -> forAll(laws.antiSymmetryEq _),
"transitivity" -> forAll(laws.transitivityEq _))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ trait PartialOrderTests[A] extends EqTests[A] {
"partialOrder",
Some(eqv),
"transitivity" -> forAll(laws.transitivity _),
"reflexitivity lt" -> forAll(laws.reflexitivityLt _),
"reflexitivity gt" -> forAll(laws.reflexitivityGt _),
"reflexivity lt" -> forAll(laws.reflexivityLt _),
"reflexivity gt" -> forAll(laws.reflexivityGt _),
"antisymmetry" -> forAll(laws.antisymmetry _),
"gt" -> forAll(laws.gt _),
"gteqv" -> forAll(laws.gteqv _),
Expand Down