Skip to content

Commit

Permalink
Fix implicit numeric widening in 2.10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
adelbertc committed Jun 9, 2016
1 parent 753b5a3 commit 50da459
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel-laws/src/test/scala/cats/kernel/laws/LawTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ class LawTests extends FunSuite with Discipline {

test("signum . toInt . comparison = signum . compare") {
check { (i: Int, j: Int) =>
Eq[Int].eqv(Order[Int].comparison(i, j).toInt.signum, Order[Int].compare(i, j).signum)
val found = Order[Int].comparison(i, j)
val expected = Order[Int].compare(i, j)
Eq[Int].eqv(found.toInt.signum, expected.signum)
}
}

Expand Down

0 comments on commit 50da459

Please sign in to comment.