Skip to content

Commit 999b2dd

Browse files
committed
Rewritten a failing test in EverySpec so that it passes in 2.13.0-RC1, by expecting the message to be consistent to Vector's error message.
1 parent b54c4ce commit 999b2dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scalactic-test/src/test/scala/org/scalactic/EverySpec.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,12 @@ class EverySpec extends UnitSpec {
133133
Every(1, 2, 3)(1) shouldEqual 2
134134
One("hi")(0) shouldEqual "hi"
135135
Many(7, 8, 9)(2) shouldEqual 9
136+
val vectorOutOfBoundsException = intercept[IndexOutOfBoundsException] {
137+
Vector(1, 2, 3)(3)
138+
}
136139
the [IndexOutOfBoundsException] thrownBy {
137140
Every(1, 2, 3)(3)
138-
} should have message "3"
141+
} should have message vectorOutOfBoundsException.getMessage
139142
}
140143
it should "have an length method" in {
141144
One(1).length shouldBe 1

0 commit comments

Comments
 (0)