This method enables the following syntax:
This method enables the following syntax:
result should matchPattern { case Person("Bob", _) => }
^
Overrides toString to return "matchPattern"
Overrides toString to return "matchPattern"
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.