Skip to content

Commit ac9f769

Browse files
committed
Improve UtilityTest.trim
Also fixes defect in scalajs 0.6.22 and scala 2.13.0-M3
1 parent fb4e4e8 commit ac9f769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/src/test/scala/scala/xml/UtilityTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ class UtilityTest {
1818
<toomuchws/>
1919
</foo>
2020
val y = xml.Utility.trim(x)
21-
assertEquals(1, y match { case <foo><toomuchws/></foo> => 1 })
21+
assertTrue(y match { case <foo><toomuchws/></foo> => true })
2222

2323
val x2 = <foo>
2424
<toomuchws> a b b a </toomuchws>
2525
</foo>
2626
val y2 = xml.Utility.trim(x2)
27-
assertEquals(2, y2 match { case <foo><toomuchws>a b b a</toomuchws></foo> => 2 })
27+
assertTrue(y2 match { case <foo><toomuchws>a b b a</toomuchws></foo> => true })
2828
}
2929

3030
@Test

0 commit comments

Comments
 (0)