These are chat archives for etorreborre/specs2

Mar 2016
Eric Torreborre
Mar 27 2016 11:05
@rossabaker you could try \/-(1) must be_\/-((v: Int) => v ≟ 1) which is going to use the scalaz.Equal instance if you are not allergic to Scalaz symbols. The trouble is that scalaz defines === as well as specs2.
Hmmm actually it looks like this takes precedence over specs2
    import scalaz._, Scalaz._
    \/-(1) must be_\/-((v: Int) => v === 2)
Better option maybe, use your equal instance with beTypedEqualTo:
    \/-(1) must be_\/-((v: Int) => v must beTypedEqualTo(2, Equal[Int].equal))
[error]  '\/-(1)' is \/- but '1' is not equal to '2' (TestSpec.scala:15)
Ross A. Baker
Mar 27 2016 14:10
Ah, I didn't know about beTypedEqualTo.