aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/lexer/variable-line.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test/script/lexer/variable-line.testscript')
-rw-r--r--unit-tests/test/script/lexer/variable-line.testscript28
1 files changed, 28 insertions, 0 deletions
diff --git a/unit-tests/test/script/lexer/variable-line.testscript b/unit-tests/test/script/lexer/variable-line.testscript
new file mode 100644
index 0000000..b28bc93
--- /dev/null
+++ b/unit-tests/test/script/lexer/variable-line.testscript
@@ -0,0 +1,28 @@
+# file : unit-tests/test/script/lexer/variable-line.testscript
+# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+test.arguments = variable-line
+
+: semi
+:
+$* <"cmd;" >>EOO
+'cmd'
+;
+<newline>
+EOO
+
+: semi-separated
+:
+$* <"cmd ;" >>EOO
+'cmd'
+;
+<newline>
+EOO
+
+: semi-only
+:
+$* <";" >>EOO
+;
+<newline>
+EOO