diff options
Diffstat (limited to 'unit-tests/test/script/lexer/variable.test')
-rw-r--r-- | unit-tests/test/script/lexer/variable.test | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/unit-tests/test/script/lexer/variable.test b/unit-tests/test/script/lexer/variable.test new file mode 100644 index 0000000..6478fea --- /dev/null +++ b/unit-tests/test/script/lexer/variable.test @@ -0,0 +1,46 @@ +# Test handling custom variable names ($*, $~, $NN). +# +test.arguments += variable + +$* <"*" >>EOO +'*' +<newline> +EOO + +$* <"*abc" >>EOO +'*' +'abc' +<newline> +EOO + +$* <"~" >>EOO +'~' +<newline> +EOO + +$* <"~123" >>EOO +'~' +'123' +<newline> +EOO + +$* <"0" >>EOO +'0' +<newline> +EOO + +$* <"10" >>EOO +'10' +<newline> +EOO + +$* <"101" >>EOO +'101' +<newline> +EOO + +$* <"1abc" >>EOO +'1' +'abc' +<newline> +EOO |