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