How to prefer to use Cats === over ScalaTest === within ScalaTest

23 views
Skip to first unread message

Daniel Hinojosa

unread,
Dec 30, 2018, 9:48:28 PM12/30/18
to scalatest-users
Any suggestion on turning off ScalaTest's === within a scope of a Spec, in my case FunSpec?  
The implicit seems to be automatically brought in on the Spec itself.

For example:

it("has specialized functions === and =!=") {
import cats.syntax.eq._
(4 === 5) should be (true) //The === is ScalaTest
} 

I have tried various combinations of the following:

import org.scalactic.{TripleEquals => _}
import org.scalactic.{TripleEqualsSupport => _}
import org.scalactic.TripleEquals.{convertToEqualizer => _}
import org.scalactic.{TypeCheckedTripleEquals => _}
import org.scalactic.{LowPriorityTypeCheckedConstraint => _}
Reply all
Reply to author
Forward
0 new messages