aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/lexer/first-token.test
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test/script/lexer/first-token.test')
-rw-r--r--unit-tests/test/script/lexer/first-token.test41
1 files changed, 41 insertions, 0 deletions
diff --git a/unit-tests/test/script/lexer/first-token.test b/unit-tests/test/script/lexer/first-token.test
index a665fed..fb75c8b 100644
--- a/unit-tests/test/script/lexer/first-token.test
+++ b/unit-tests/test/script/lexer/first-token.test
@@ -6,3 +6,44 @@ $* <";" >>EOO # semi-only
;
<newline>
EOO
+
+$* <"+foo" >>EOO # setup
++
+'foo'
+<newline>
+EOO
+
+$* <"- foo" >>EOO # tdown
+-
+'foo'
+<newline>
+EOO
+
+$* <"foo+bar" >>EOO # plus-leading
+'foo+bar'
+<newline>
+EOO
+
+$* <"foo- x" >>EOO # minus-leading
+'foo-'
+'x'
+<newline>
+EOO
+
+$* <"foo=" >>EOO # assign
+'foo'
+'='
+<newline>
+EOO
+
+$* <"foo+=" >>EOO # append
+'foo'
+'+='
+<newline>
+EOO
+
+$* <"foo=+" >>EOO # prepend
+'foo'
+'=+'
+<newline>
+EOO