org.scalatest.matchers.Matchers.MatcherWrapper

class OrContainWord

[source: org/scalatest/matchers/Matchers/MatcherWrapper.scala]

final class OrContainWord
extends AnyRef
This class is part of the ScalaTest matchers DSL. Please see the documentation for ShouldMatchers or MustMatchers for an overview of the matchers DSL.
Author
Bill Venners
Method Summary
def apply [T](expectedElement : T) : Matcher[T with scala.Iterable[T]]
This method enables the following syntax:
       Array(1, 2) should (contain (2) or contain (3 - 1))
                                                  ^
       
def key [T](expectedKey : T) : Matcher[T with scala.collection.Map[T, Any]]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (contain key ("cat") or contain key ("one"))
                                                                          ^
       
def value [T](expectedValue : T) : Matcher[<NoSymbol>.<refinement>]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (contain value (7) or contain value (1))
                                                                        ^
       
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def apply[T](expectedElement : T) : Matcher[T with scala.Iterable[T]]
This method enables the following syntax:
       Array(1, 2) should (contain (2) or contain (3 - 1))
                                                  ^
       

def key[T](expectedKey : T) : Matcher[T with scala.collection.Map[T, Any]]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (contain key ("cat") or contain key ("one"))
                                                                          ^
       

def value[T](expectedValue : T) : Matcher[<NoSymbol>.<refinement>]
This method enables the following syntax:
       Map("one" -> 1, "two" -> 2) should (contain value (7) or contain value (1))
                                                                        ^
       


Copyright (C) 2001-2009 Artima, Inc. All rights reserved.