Skip to content

Commit

Permalink
Unit test for scala#77 too aggresive trim of whitespace around entities
Browse files Browse the repository at this point in the history
  • Loading branch information
ashawley committed Sep 28, 2015
1 parent 3161a38 commit e51f895
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/scala/scala/xml/UtilityTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ class UtilityTest {
assertEquals("<a a=\"2\" g=\"3\" j=\"2\" oo=\"2\"/>", pp.format(q))
}

@Test
def issue77: Unit = {
val x = <x>a &amp; b</x>

assertEquals("<x>a &amp; b</x>", Utility.trim(x).toString)
}

@Test
def issue777: Unit = {
<hi>
Expand Down

0 comments on commit e51f895

Please sign in to comment.