aboutsummaryrefslogtreecommitdiff
path: root/tests/string-parser/testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/string-parser/testscript')
-rw-r--r--tests/string-parser/testscript30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/string-parser/testscript b/tests/string-parser/testscript
index d484e01..05c2807 100644
--- a/tests/string-parser/testscript
+++ b/tests/string-parser/testscript
@@ -30,6 +30,36 @@
x "y z
EOO
}
+
+ : comments
+ :
+ {
+ $* -c <<EOI >>EOO
+ # Comment 1
+ #
+ abc #xyz
+
+ # Comment 2
+ #
+ abc#
+
+ "# not a comment 3" #not-a-comment4
+
+ "abc
+ # not a comment 5
+ "
+ # Comment 6
+ EOI
+ abc
+ #xyz
+ abc#
+ "# not a comment 3"
+ #not-a-comment4
+ "abc
+ # not a comment 5
+ "
+ EOO
+ }
}
: invalid