aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/lexer/second-token.test
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test/script/lexer/second-token.test')
-rw-r--r--unit-tests/test/script/lexer/second-token.test37
1 files changed, 36 insertions, 1 deletions
diff --git a/unit-tests/test/script/lexer/second-token.test b/unit-tests/test/script/lexer/second-token.test
index a665fed..cc044dd 100644
--- a/unit-tests/test/script/lexer/second-token.test
+++ b/unit-tests/test/script/lexer/second-token.test
@@ -1,8 +1,43 @@
# Note: this mode auto-expires after each token.
#
-test.arguments += first-token
+test.arguments += second-token
$* <";" >>EOO # semi-only
;
<newline>
EOO
+
+$* <"=foo" >>EOO # assign
+=
+'foo'
+<newline>
+EOO
+
+$* <"+= foo" >>EOO # append
++=
+'foo'
+<newline>
+EOO
+
+$* <" =+ foo" >>EOO # prepend
+=+
+'foo'
+<newline>
+EOO
+
+$* <"foo=bar" >>EOO # assign-leading
+'foo=bar'
+<newline>
+EOO
+
+$* <"foo+= bar" >>EOO # append-leading
+'foo+='
+'bar'
+<newline>
+EOO
+
+$* <"foo =+bar" >>EOO # prepend-leading
+'foo'
+'=+bar'
+<newline>
+EOO