These are chat archives for etorreborre/specs2

5th
May 2017
Rob Norris
@tpolecat
May 05 2017 21:35
x must beLike { case pat => what goes here that means success? }
Eric Torreborre
@etorreborre
May 05 2017 21:35
ok
ok
Rob Norris
@tpolecat
May 05 2017 21:35
hm thanks
Eric Torreborre
@etorreborre
May 05 2017 21:35
Anything that has a AsResult instance should work
However you generally have to add a type annotation to beLike
Rob Norris
@tpolecat
May 05 2017 21:36
i see. true didn't work. ok works, thanks
I was unable to find this in the Matcher section of the user guide.
Eric Torreborre
@etorreborre
May 05 2017 21:37
Sorry I was wrong about the AsResult instance. It currently take a MatchResult[_]
Rob Norris
@tpolecat
May 05 2017 21:38
Yeah. That's what it was complaining about. I was looking for an explanation of MatchResult and didn't find one.
Eric Torreborre
@etorreborre
May 05 2017 21:38
Indeed this matcher is missing from the user guide, I will add it
Rob Norris
@tpolecat
May 05 2017 21:39
:+1:
thanks for your help, all is well
Eric Torreborre
@etorreborre
May 05 2017 21:39
:tada: