On Wed, Oct 17, 2012 at 5:23 PM, Rhys Keepence <
rhyske...@gmail.com> wrote:
> Essentially I want to be able to compose matchers in a single assertion,
> more importantly because they describe failures.
>
> For example when I run an example such as (using my custom matcher)
>
> val xml = Some(<name>sir robin</name>)
> xml must beSomeMatching(\\("name") \> "roger the shrubber")
>
> I get a meaningful error:
> '<name>sir robin</name>' doesn't contain node 'name' with text: roger the
> shrubber
>
> On the other hand this example
>
> val maybeXml = Some(<name>sir robin</name>)
> maybeXml must beSome.which ( xml => (xml \\ "name").text == "roger the
> shrubber")