org.specs.matcher.AnyMatchers.ToMatcher

class ToMatcher

class ToMatcher[S, T](f : (S) => Matcher[T])

 extends ScalaObject


The ToMatcher class allows to combine functions returning matchers, or a function returning a matcher and a matcher.

For example:((beEqualTo(_:Int)) or (be_>(_:Int)))(3)



Source: AnyMatchers.scala(378)

 Constructors

def this(f : (S) => Matcher[T])

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
^^ def ^^[A](g : (A) => S)
[details]
return
- a function which will return the composition of a matcher and a function
(A) => Matcher[T]
and def and(m : (S) => Matcher[T])
[details]
return
- a function which will return the and of 2 matchers
(S) => Matcher[T]
and def and(m : => Matcher[T])
[details]
return
- a function which will return the and of 2 matchers
(S) => Matcher[T]
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals def equals(arg0 : Any) Boolean AnyRef
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode def hashCode Int AnyRef
isInstanceOf final def isInstanceOf[T0] Boolean Any
ne final def ne(arg0 : Object) Boolean AnyRef
not def not
[details]
return
- a function which will return the negation of a matcher
(S) => Matcher[T]
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
or def or(m : (S) => Matcher[T])
[details]
return
- a function which will return the or of 2 matchers
(S) => Matcher[T]
or def or(m : => Matcher[T])
[details]
return
- a function which will return the or of 2 matchers
(S) => Matcher[T]
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toSeq def toSeq
[details]
return
- a function which will return a matcher checking a sequence of objects
(Seq[S]) => Matcher[Seq[T]]
toSet def toSet
[details]
return
- a function which will return a matcher checking a set of objects
(Set[S]) => Matcher[Set[T]]
toString def toString String AnyRef
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
xor def xor(m : (S) => Matcher[T])
[details]
return
- a function which will return the xor of 2 matchers
(S) => Matcher[T]
xor def xor(m : Matcher[T])
[details]
return
- a function which will return the xor of 2 matchers
(S) => Matcher[T]
Copyright (c) 2007-2009. All Rights Reserved.