summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-05-01 17:11:56 +0000
committerPaul Phillips <paulp@improving.org>2009-05-01 17:11:56 +0000
commit8cc51cc0dce7d86a4137eb636c4e3bed1b90cf13 (patch)
tree4187c272defe068a848bfbca6e1033e7f85ca85a /test/files/run
parenta020e82b2e46dd49da6bb2b8ec4f5aaded246907 (diff)
downloadscala-8cc51cc0dce7d86a4137eb636c4e3bed1b90cf13.tar.gz
scala-8cc51cc0dce7d86a4137eb636c4e3bed1b90cf13.tar.bz2
scala-8cc51cc0dce7d86a4137eb636c4e3bed1b90cf13.zip
Fix and test case for #1773.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t1773.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t1773.scala b/test/files/run/t1773.scala
new file mode 100644
index 0000000000..fc24f58b61
--- /dev/null
+++ b/test/files/run/t1773.scala
@@ -0,0 +1,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 == x2)
+} \ No newline at end of file