Skip to content

Commit e51f895

Browse files
committed
Unit test for scala#77 too aggresive trim of whitespace around entities
1 parent 3161a38 commit e51f895

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ class UtilityTest {
4646
assertEquals("<a a=\"2\" g=\"3\" j=\"2\" oo=\"2\"/>", pp.format(q))
4747
}
4848

49+
@Test
50+
def issue77: Unit = {
51+
val x = <x>a &amp; b</x>
52+
53+
assertEquals("<x>a &amp; b</x>", Utility.trim(x).toString)
54+
}
55+
4956
@Test
5057
def issue777: Unit = {
5158
<hi>

0 commit comments

Comments
 (0)