This method enables syntax such as the following:
This method enables syntax such as the following:
xs.loneElement should be > 9 ^
This method enables syntax such as the following:
This method enables syntax such as the following:
traversable should not have size (3)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
traversable should contain theSameElementsAs anotherTraversable
^
This method enables syntax such as the following:
This method enables syntax such as the following:
xs should contain oneOf (1, 2, 3) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result should have length (3)
result should have size (3)
This method enables syntax such as the following:
This method enables syntax such as the following:
result should be a aMatcher
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result should === (100 +- 1)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
a should === (b)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result should (equal (expected) and have length 3)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result should equal (3)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result should be (3)
^
This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:
This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:
programmingInScala shouldBe an (excellentRead)
^
This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:
This method enables the following syntax, where goodRead refers to a BePropertyMatcher[Book]:
programmingInScala shouldBe a (goodRead)
^
This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:
This method enables the following syntax, where excellentRead refers to a BePropertyMatcher[Book]:
programmingInScala shouldBe excellentRead
^
This method enables the following syntax:
This method enables the following syntax:
list shouldBe an ('empty)
^
This method enables the following syntax:
This method enables the following syntax:
list shouldBe a ('empty)
^
This method enables the following syntax:
This method enables the following syntax:
list shouldBe 'empty
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldBe theSameInstanceAs (anotherObject)
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldBe null
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldBe 7.1 +- 0.2
^
This method enables the following syntax, where odd refers to a BeMatcher[Int]:
This method enables the following syntax, where odd refers to a BeMatcher[Int]:
testing 1 shouldBe odd ^
This method enables syntax such as the following:
This method enables syntax such as the following:
8 shouldBe >= (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
5 shouldBe <= (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
8 shouldBe > (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
5 shouldBe < (7) ^
This method enables syntax such as the following:
This method enables syntax such as the following:
aDouble shouldBe 8.8
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldEqual null
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldEqual 7.1 +- 0.2
^
This method enables syntax such as the following:
This method enables syntax such as the following:
a shouldEqual b ^
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldNot (be (3))
^
This method enables syntax such as the following:
This method enables syntax such as the following:
result shouldNot be (3)
^
This class is part of the ScalaTest matchers DSL. Please see the documentation for
Matchersfor an overview of the matchers DSL.This class is used in conjunction with an implicit conversion to enable
shouldmethods to be invoked on objects of typescala.Collection[T].