File tree 1 file changed +2
-8
lines changed
jvm/src/test/scala/scala/xml
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,7 @@ object NodeSeqSpec extends PropertiesFor("NodeSeq")
89
89
90
90
property(" \\\\ \"\" .throws[Exception]" ) = {
91
91
Prop .forAll { n : NodeSeq =>
92
- // FIXME: Should be IllegalArgumentException.
93
- Prop .throws(classOf [StringIndexOutOfBoundsException ]) {
92
+ Prop .throws(classOf [IllegalArgumentException ]) {
94
93
(n \\ " " )
95
94
}
96
95
}
@@ -113,12 +112,7 @@ object NodeSeqSpec extends PropertiesFor("NodeSeq")
113
112
property(" \\\\ " ) = {
114
113
Prop .forAll { (n : NodeSeq , s : String ) =>
115
114
Prop .iff[String ](s, {
116
- // FIXME: Should be IllegalArgumentException, regardless of theSeq.
117
- case " " =>
118
- Prop .throws(classOf [StringIndexOutOfBoundsException ]) {
119
- (n \\ s)
120
- }
121
- case " @" =>
115
+ case " " | " @" =>
122
116
Prop .throws(classOf [IllegalArgumentException ]) {
123
117
(n \\ s)
124
118
}
You can’t perform that action at this time.
0 commit comments