org.scalatest.matchers.Matchers

class ResultOfNotWordForArray

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

final class ResultOfNotWordForArray[E](left : scala.Array[E], shouldBeTrue : Boolean)
extends ResultOfNotWordForAnyRef[scala.Array[E]]
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 contain (expectedElement : E) : Unit
This method enables the following syntax:
     Array("two", "three") should not contain ("one")
                                      ^
     
def have (resultOfLengthWordApplication : ResultOfLengthWordApplication) : Unit
This method enables the following syntax:
     Array(1, 2) should not have length (12)
                            ^
     
def have (resultOfSizeWordApplication : ResultOfSizeWordApplication) : Unit
This method enables the following syntax:
     Array(1, 2) should not have size (3)
                            ^
     
Methods inherited from ResultOfNotWordForAnyRef
be, be, be, be, be, be, be, be, have
Methods inherited from ResultOfNotWord
equal, be, be, be, be, be, be, be
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 contain(expectedElement : E) : Unit
This method enables the following syntax:
     Array("two", "three") should not contain ("one")
                                      ^
     

def have(resultOfSizeWordApplication : ResultOfSizeWordApplication) : Unit
This method enables the following syntax:
     Array(1, 2) should not have size (3)
                            ^
     

def have(resultOfLengthWordApplication : ResultOfLengthWordApplication) : Unit
This method enables the following syntax:
     Array(1, 2) should not have length (12)
                            ^
     


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