From e3ff4880273746c34d07e641110abaf38a1f1fca Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 25 Oct 2016 07:46:08 +0200 Subject: Add tests for first_token, second_token testscript lexer modes --- unit-tests/test/script/lexer/first-token.test | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'unit-tests/test/script/lexer/first-token.test') 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 ; EOO + +$* <"+foo" >>EOO # setup ++ +'foo' + +EOO + +$* <"- foo" >>EOO # tdown +- +'foo' + +EOO + +$* <"foo+bar" >>EOO # plus-leading +'foo+bar' + +EOO + +$* <"foo- x" >>EOO # minus-leading +'foo-' +'x' + +EOO + +$* <"foo=" >>EOO # assign +'foo' +'=' + +EOO + +$* <"foo+=" >>EOO # append +'foo' +'+=' + +EOO + +$* <"foo=+" >>EOO # prepend +'foo' +'=+' + +EOO -- cgit v1.1