ScalaTest 1.0
|
|
final
class
AndContainWord
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) and contain (3 - 1)) |
def
|
key
[T](expectedElement : T) : Matcher[T with scala.collection.Map[T, Any]]
This method enables the following syntax:
Map("one" -> 1, "two" -> 2) should (contain key ("two") and 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 (2) and 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) and contain (3 - 1))
Map("one" -> 1, "two" -> 2) should (contain key ("two") and contain key ("one")) ^
def
value[T](expectedValue : T) : Matcher[<NoSymbol>.<refinement>]
Map("one" -> 1, "two" -> 2) should (contain value (2) and contain value (1)) ^
ScalaTest 1.0
|
|