aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/lexer/second-token.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-06 18:46:58 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-09 21:44:23 +0300
commitc55240fb05151cae046c75a793c164d72c988db2 (patch)
tree35cbba195e0fcc581944b7b098a3ea145741cf94 /unit-tests/test/script/lexer/second-token.test
parent9e2b4fd3bbc0c61bf6c84540c52869ec7d830718 (diff)
Tests cleanup (take 2)
Diffstat (limited to 'unit-tests/test/script/lexer/second-token.test')
-rw-r--r--unit-tests/test/script/lexer/second-token.test36
1 files changed, 28 insertions, 8 deletions
diff --git a/unit-tests/test/script/lexer/second-token.test b/unit-tests/test/script/lexer/second-token.test
index 94cdf95..94ea441 100644
--- a/unit-tests/test/script/lexer/second-token.test
+++ b/unit-tests/test/script/lexer/second-token.test
@@ -1,47 +1,67 @@
+# file : unit-tests/test/script/lexer/second-token.test
+# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
# Note: this mode auto-expires after each token.
#
test.arguments = second-token
-$* <";" >>EOO # semi
+: semi
+:
+$* <";" >>EOO
;
<newline>
EOO
-$* <":" >>EOO # colon
+: colon
+:
+$* <":" >>EOO
:
<newline>
EOO
-$* <"=foo" >>EOO # assign
+: assign
+:
+$* <"=foo" >>EOO
=
'foo'
<newline>
EOO
-$* <"+= foo" >>EOO # append
+: append
+:
+$* <"+= foo" >>EOO
+=
'foo'
<newline>
EOO
-$* <" =+ foo" >>EOO # prepend
+: prepend
+:
+$* <" =+ foo" >>EOO
=+
'foo'
<newline>
EOO
-$* <"foo=bar" >>EOO # assign-leading
+: assign-leading
+:
+$* <"foo=bar" >>EOO
'foo=bar'
<newline>
EOO
-$* <"foo+= bar" >>EOO # append-leading
+: append-leading
+:
+$* <"foo+= bar" >>EOO
'foo+='
'bar'
<newline>
EOO
-$* <"foo =+bar" >>EOO # prepend-leading
+: prepend-leading
+:
+$* <"foo =+bar" >>EOO
'foo'
'=+bar'
<newline>