org.scalatest.matchers.Matchers

class ResultOfHaveWordForSizeWrapper

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

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

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


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

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



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