ScalaTest 1.1
|
|
final
class
OrContainWord
extends
AnyRefShouldMatchers
or MustMatchers
for an overview of
the matchers DSL.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]]
Array(1, 2) should (contain (2) or contain (3 - 1)) ^
Map("one" -> 1, "two" -> 2) should (contain key ("cat") or contain key ("one")) ^
def
value[T](expectedValue : T) : Matcher[<NoSymbol>.<refinement>]
Map("one" -> 1, "two" -> 2) should (contain value (7) or contain value (1)) ^
ScalaTest 1.1
|
|