aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/lexer+normal.test.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/lexer+normal.test.testscript')
-rw-r--r--libbuild2/lexer+normal.test.testscript36
1 files changed, 36 insertions, 0 deletions
diff --git a/libbuild2/lexer+normal.test.testscript b/libbuild2/lexer+normal.test.testscript
new file mode 100644
index 0000000..c9448c3
--- /dev/null
+++ b/libbuild2/lexer+normal.test.testscript
@@ -0,0 +1,36 @@
+# file : libbuild2/lexer+normal.test.testscript
+# license : MIT; see accompanying LICENSE file
+
+test.arguments = normal
+
+: assign
+:
+$* <:'x=y' >>EOO
+'x'
+=
+'y'
+EOO
+
+: append
+:
+$* <:'x+=y' >>EOO
+'x'
++=
+'y'
+EOO
+
+: prepend
+:
+$* <:'x=+y' >>EOO
+'x'
+=+
+'y'
+EOO
+
+: default-assign
+:
+$* <:'x?=y' >>EOO
+'x'
+?=
+'y'
+EOO