File tree 1 file changed +2
-14
lines changed
jvm/src/test/scala/scala/xml
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,10 @@ object NodeSeqSpec extends PropertiesFor("NodeSeq")
54
54
property(" \\ @.throws[Exception]" ) = {
55
55
Prop .forAll { n : NodeSeq =>
56
56
Prop .iff[NodeSeq ](n, {
57
- // FIXME: Should be IllegalArgumentException, regardless of theSeq.
58
- case n if n.length == 0 =>
59
- (n \ " @" ) ?= NodeSeq .Empty
60
- case n if n.length == 1 =>
57
+ case n : NodeSeq =>
61
58
Prop .throws(classOf [IllegalArgumentException ]) {
62
59
(n \ " @" )
63
60
}
64
- case n : NodeSeq =>
65
- (n \ " @" )
66
- Prop .passed
67
61
})
68
62
}
69
63
}
@@ -126,16 +120,10 @@ object NodeSeqSpec extends PropertiesFor("NodeSeq")
126
120
property(" \\ @ \"\" .throws[Exception]" ) = {
127
121
Prop .forAll { n : NodeSeq =>
128
122
Prop .iff[NodeSeq ](n, {
129
- // FIXME: Should be IllegalArgumentException, regardless of theSeq.
130
- case n if n.length == 0 =>
131
- (n \@ " " ) ?= " "
132
- case n if n.length == 1 =>
123
+ case s =>
133
124
Prop .throws(classOf [IllegalArgumentException ]) {
134
125
(n \@ " " )
135
126
}
136
- case s =>
137
- (n \@ " " )
138
- Prop .passed
139
127
})
140
128
}
141
129
}
You can’t perform that action at this time.
0 commit comments