Packages

c

org.scalatest.words

MatchPatternWord

final class MatchPatternWord extends AnyRef

This class is part of the ScalaTest matchers DSL. Please see the documentation for Matchers for an overview of the matchers DSL.

Source
MatchPatternWord.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MatchPatternWord
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatchPatternWord()

Value Members

  1. macro def apply(right: PartialFunction[Any, _]): Matcher[Any]

    This method enables the following syntax:

    This method enables the following syntax:

    result should matchPattern { case Person("Bob", _) => }
                  ^
    

  2. def toString(): String

    Overrides toString to return "matchPattern"

    Overrides toString to return "matchPattern"

    Definition Classes
    MatchPatternWord → AnyRef → Any