From 5f870b22b96f6f532d357478bede1cf646606909 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 28 Dec 2017 22:19:17 +1300 Subject: Add more cases to parser whitespace test --- test/test-short-keyword.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test-short-keyword.c b/test/test-short-keyword.c index 226c097..b3baa2c 100644 --- a/test/test-short-keyword.c +++ b/test/test-short-keyword.c @@ -15,6 +15,13 @@ char *failures[] = { " module ", "\tmodule ", " moudle \t\n ", + "expr ", + " expr ", + "expr", + "expr asdf xor a b", + "expr asdf: xor b", + "expr asdf: foo b", + "expr asdf: foo a b", }; char *passes[] = { @@ -26,6 +33,9 @@ char *passes[] = { "module test ", "module test ", " \tmodule \ttest \t", + "expr asdf: xor aa a", + "expr asdf: not aa", + " expr asdf: not aa ", "\n", "\n\n", "\r", -- cgit v1.1