We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3faeb16 commit 3330196Copy full SHA for 3330196
src/test/scala/scalatutorial/sections/TypeClassesSpec.scala
@@ -18,7 +18,8 @@ class TypeClassesSpec extends Spec with Checkers {
18
def `check rational ordering`: Unit = {
19
val ordering =
20
(x: Rational, y: Rational) => x.numer * y.denom - y.numer * x.denom
21
- check(Test.testSuccess(TypeClasses.rationalOrdering _, ordering :: HNil))
+
22
+ TypeClasses.rationalOrdering(ordering)
23
}
24
25
0 commit comments