aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t8015-ffc.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t8015-ffc.scala')
-rw-r--r--tests/run/t8015-ffc.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/t8015-ffc.scala b/tests/run/t8015-ffc.scala
new file mode 100644
index 000000000..f458cc2ac
--- /dev/null
+++ b/tests/run/t8015-ffc.scala
@@ -0,0 +1,7 @@
+
+object Test extends dotty.runtime.LegacyApp {
+ val ms = """This is a long multiline string
+ with \u000d\u000a CRLF embedded."""
+ assert(ms.lines.size == 3, s"lines.size ${ms.lines.size}")
+ assert(ms contains "\r\n CRLF", "no CRLF")
+}