File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
jvm/src/test/scala/scala/xml Expand file tree Collapse file tree 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")
8989
9090 property(" \\\\ \"\" .throws[Exception]" ) = {
9191 Prop .forAll { n : NodeSeq =>
92- // FIXME: Should be IllegalArgumentException.
93- Prop .throws(classOf [StringIndexOutOfBoundsException ]) {
92+ Prop .throws(classOf [IllegalArgumentException ]) {
9493 (n \\ " " )
9594 }
9695 }
@@ -113,12 +112,7 @@ object NodeSeqSpec extends PropertiesFor("NodeSeq")
113112 property(" \\\\ " ) = {
114113 Prop .forAll { (n : NodeSeq , s : String ) =>
115114 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 " " | " @" =>
122116 Prop .throws(classOf [IllegalArgumentException ]) {
123117 (n \\ s)
124118 }
You can’t perform that action at this time.
0 commit comments