org.scalatest.matchers.Matchers

class ResultOfHaveWordForLengthWrapper

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

final class ResultOfHaveWordForLengthWrapper[A](left : A, shouldBeTrue : Boolean, implicit view$7 : (A) => LengthWrapper)
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 length (expectedLength : Int) : Unit
This method enables the following syntax:
     obj should have length (2)
                          ^
     
def length (expectedLength : Long) : Unit
This method enables the following syntax:
     obj should have length (2L)
                          ^
     
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 length(expectedLength : Int) : Unit
This method enables the following syntax:
     obj should have length (2)
                          ^
     

This method is ultimately invoked for objects that have a length property structure of type Int, but is of a type that is not handled by implicit conversions from nominal types such as scala.Seq, java.lang.String, and java.util.List.


def length(expectedLength : Long) : Unit
This method enables the following syntax:
     obj should have length (2L)
                          ^
     

This method is ultimately invoked for objects that have a length property structure of type Long, but is of a type that is not handled by implicit conversions from nominal types such as scala.Seq, java.lang.String, and java.util.List.



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