File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
shared/src/test/scala/scala/xml Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -194,4 +194,27 @@ class UtilityTest {
194194 ).toMap.withDefault {
195195 key : Char => key.toString
196196 }
197+
198+ def issue73StartsWithAndEndsWithWSInFirst : Unit = {
199+ val x = <div >{Text (" My name is " )}{Text (" Harry" )}</div >
200+ assertEquals(<div >My name is Harry </div >, Utility .trim(x))
201+ }
202+
203+ @ Test
204+ def issue73EndsWithWSInLast : Unit = {
205+ val x = <div >{Text (" My name is " )}{Text (" Harry " )}</div >
206+ assertEquals(<div >My name is Harry </div >, Utility .trim(x))
207+ }
208+
209+ @ Test
210+ def issue73HasWSInMiddle : Unit = {
211+ val x = <div >{Text (" My name is" )}{Text (" " )}{Text (" Harry" )}</div >
212+ assertEquals(<div >My name is Harry </div >, Utility .trim(x))
213+ }
214+
215+ @ Test
216+ def issue73HasWSEverywhere : Unit = {
217+ val x = <div >{Text (" My name " )}{Text (" is " )}{Text (" Harry " )}</div >
218+ assertEquals(<div >My name is Harry </div >, Utility .trim(x))
219+ }
197220}
You can’t perform that action at this time.
0 commit comments