summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-12-28 21:59:59 +1300
committerDavid Phillips <david@sighup.nz>2017-12-28 21:59:59 +1300
commit499b193530a8e89223537e7da226fd5b77c04ca6 (patch)
tree2c5e106433869337bd117f1ae657d44ac263eafb /test
parentb6a3052c3ebde6114ec6166971b3072460c44814 (diff)
downloadhence-499b193530a8e89223537e7da226fd5b77c04ca6.tar.xz
Massive parser clamp-down
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-duplicate-inputbin18808 -> 20664 bytes
-rwxr-xr-xtest/test-short-keywordbin19008 -> 25032 bytes
-rw-r--r--test/test-short-keyword.c14
3 files changed, 14 insertions, 0 deletions
diff --git a/test/test-duplicate-input b/test/test-duplicate-input
index 236c6fc..141d6aa 100755
--- a/test/test-duplicate-input
+++ b/test/test-duplicate-input
Binary files differ
diff --git a/test/test-short-keyword b/test/test-short-keyword
index 39f58dc..17b4858 100755
--- a/test/test-short-keyword
+++ b/test/test-short-keyword
Binary files differ
diff --git a/test/test-short-keyword.c b/test/test-short-keyword.c
index 50d44d3..226c097 100644
--- a/test/test-short-keyword.c
+++ b/test/test-short-keyword.c
@@ -7,13 +7,25 @@
#include "parser.h"
char *failures[] = {
+ "input"
"input\n",
"input \n",
+ "input aa aa\n",
+ "module",
+ " module ",
+ "\tmodule ",
+ " moudle \t\n ",
};
char *passes[] = {
+ "input aa",
"input a\n",
"input aaaaaaaa\n",
+ "module test",
+ "module test",
+ "module test ",
+ "module test ",
+ " \tmodule \ttest \t",
"\n",
"\n\n",
"\r",
@@ -22,6 +34,8 @@ char *passes[] = {
"\n\r",
"\n\n\r",
"\r\n\r",
+ "",
+ "\t"
};
int main(void) {