We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54c4ce commit 999b2ddCopy full SHA for 999b2dd
scalactic-test/src/test/scala/org/scalactic/EverySpec.scala
@@ -133,9 +133,12 @@ class EverySpec extends UnitSpec {
133
Every(1, 2, 3)(1) shouldEqual 2
134
One("hi")(0) shouldEqual "hi"
135
Many(7, 8, 9)(2) shouldEqual 9
136
+ val vectorOutOfBoundsException = intercept[IndexOutOfBoundsException] {
137
+ Vector(1, 2, 3)(3)
138
+ }
139
the [IndexOutOfBoundsException] thrownBy {
140
Every(1, 2, 3)(3)
- } should have message "3"
141
+ } should have message vectorOutOfBoundsException.getMessage
142
}
143
it should "have an length method" in {
144
One(1).length shouldBe 1
0 commit comments