summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-12-28 22:19:17 +1300
committerDavid Phillips <david@sighup.nz>2017-12-28 22:19:22 +1300
commit5f870b22b96f6f532d357478bede1cf646606909 (patch)
tree64afee76be17d6f36f6f43033a646da03a606404 /test
parent486080d2def79f7a2c84b6289b2baf8e292f37e2 (diff)
downloadhence-5f870b22b96f6f532d357478bede1cf646606909.tar.xz
Add more cases to parser whitespace test
Diffstat (limited to 'test')
-rw-r--r--test/test-short-keyword.c10
1 files changed, 10 insertions, 0 deletions
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",