summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/interpreter.check9
-rw-r--r--test/files/run/interpreter.scala12
2 files changed, 21 insertions, 0 deletions
diff --git a/test/files/run/interpreter.check b/test/files/run/interpreter.check
index e06fcf44ce..79181d9e3c 100644
--- a/test/files/run/interpreter.check
+++ b/test/files/run/interpreter.check
@@ -151,3 +151,12 @@ scala> <console>:1: error: identifier expected but integer literal found.
scala>
scala>
scala>
+scala> | | | | res2: scala.xml.Elem = <a>
+<b d="dd" c="c"></b></a>
+
+scala>
+scala> | | You typed two blank lines. Starting a new command.
+
+scala>
+scala>
+scala>
diff --git a/test/files/run/interpreter.scala b/test/files/run/interpreter.scala
index 34058b323a..77e3e41662 100644
--- a/test/files/run/interpreter.scala
+++ b/test/files/run/interpreter.scala
@@ -83,6 +83,18 @@ def x => y => z
[1,2,3]
+// multi-line XML
+&lt;a>
+&lt;b
+ c="c"
+ d="dd"
+/>&lt;/a>
+
+(1 + // give up early by typing two blank lines
+
+
+
+
</code>.text