ScalaTest 1.0
|
|
org/scalatest/matchers/Matchers.scala
]
final
class
StartWithWord
extends
AnyRefShouldMatchers
or MustMatchers
for an overview of
the matchers DSL.Method Summary | |
def
|
apply
(right : java.lang.String) : Matcher[java.lang.String]
This method enables the following syntax:
"1.7b" should (startWith ("1.7") and startWith ("1.7b")) ^ |
def
|
regex
(rightRegex : scala.util.matching.Regex) : Matcher[java.lang.String]
This method enables the following syntax:
val decimalRegex = """(-)?(\d+)(\.\d*)?""".r "1.7" should (startWith regex (decimalRegex) and startWith regex (decimalRegex)) ^ |
def
|
regex
[T <: java.lang.String](right : T) : Matcher[T]
This method enables the following syntax:
val decimal = """(-)?(\d+)(\.\d*)?""" "1.7b" should (startWith regex (decimal) and startWith regex (decimal)) ^ |
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(right : java.lang.String) : Matcher[java.lang.String]
"1.7b" should (startWith ("1.7") and startWith ("1.7b")) ^
def
regex[T <: java.lang.String](right : T) : Matcher[T]
val decimal = """(-)?(\d+)(\.\d*)?""" "1.7b" should (startWith regex (decimal) and startWith regex (decimal)) ^
def
regex(rightRegex : scala.util.matching.Regex) : Matcher[java.lang.String]
val decimalRegex = """(-)?(\d+)(\.\d*)?""".r "1.7" should (startWith regex (decimalRegex) and startWith regex (decimalRegex)) ^
ScalaTest 1.0
|
|