blob: 4a4aaba1f0a9d37f4e9c706998427734e3c4817c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
object Test extends Application
{
val xs = List(
<a></a>,
<a/>,
<a>{ xml.NodeSeq.Empty }</a>,
<a>{""}</a>,
<a>{ if (true) "" else "I like turtles" }</a>
)
for (x1 <- xs; x2 <- xs) assert (x1 xml_== x2)
}
|