Hi Kostas,
We did implement type checks for equal, be, and contain matchers and
this works in master on github, but the problem currently is I'm
worried about the compile time impact. We will be measuring that this
week more carefully, to isolate that difference from other differences
(we've added other things into master).
scala> import org.scalactic._
import org.scalactic._
scala> import org.scalatest._
import org.scalatest._
scala> import Matchers._
import Matchers._
scala> import CheckedEquality._
import CheckedEquality._
scala> Map("one" -> 1, "two" -> 2) should be (List(1, 2, 3))
<console>:32: error: Could not find evidence that
scala.collection.immutable.Map[String,Int] can equal List[Int]; the
missing implicit parameter is of type
org.scalactic.EqualityConstraint[scala.collection.immutable.Map[String,Int],List[Int]]
Map("one" -> 1, "two" -> 2) should be (List(1, 2, 3))
^
So it works, but if I can't get the compile time to be near what it
was before, I may have to go back to the drawing board.
Bill
> --
> You received this message because you are subscribed to the Google
> Groups "scalatest-users" group.
> To post to this group, send email to
scalate...@googlegroups.com
> To unsubscribe from this group, send email to
>
scalatest-use...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/scalatest-users?hl=en
> ScalaTest itself, and documentation, is available here:
>
http://www.artima.com/scalatest
> ---
> You received this message because you are subscribed to the Google Groups
> "scalatest-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
scalatest-use...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Bill Venners
Artima, Inc.
http://www.artima.com