From e22abc4eaf4f1446c6ac31e4b709cb5206d4fe3b Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 1 Aug 2018 21:55:36 +1200 Subject: Add simple language test cases, fix empty line bug --- test/invalid-hence/empty-1.hence | 0 test/invalid-hence/empty-1.hence.expected | 1 + test/invalid-hence/empty-2.hence | 1 + test/invalid-hence/empty-2.hence.expected | 1 + test/invalid-hence/empty-3.hence | 2 ++ test/invalid-hence/empty-3.hence.expected | 1 + test/invalid-hence/empty-4.hence | 1 + test/invalid-hence/empty-4.hence.expected | 1 + test/invalid-hence/empty-5.hence | 1 + test/invalid-hence/empty-5.hence.expected | 1 + test/invalid-hence/empty-6.hence | 1 + test/invalid-hence/empty-6.hence.expected | 1 + test/invalid-hence/empty-7.hence | 1 + test/invalid-hence/empty-7.hence.expected | 1 + test/invalid-hence/empty-8.hence | 4 ++++ test/invalid-hence/empty-8.hence.expected | 1 + test/invalid-hence/empty-9.hence | 2 ++ test/invalid-hence/empty-9.hence.expected | 1 + 18 files changed, 22 insertions(+) create mode 100644 test/invalid-hence/empty-1.hence create mode 100644 test/invalid-hence/empty-1.hence.expected create mode 100644 test/invalid-hence/empty-2.hence create mode 100644 test/invalid-hence/empty-2.hence.expected create mode 100644 test/invalid-hence/empty-3.hence create mode 100644 test/invalid-hence/empty-3.hence.expected create mode 100644 test/invalid-hence/empty-4.hence create mode 100644 test/invalid-hence/empty-4.hence.expected create mode 100644 test/invalid-hence/empty-5.hence create mode 100644 test/invalid-hence/empty-5.hence.expected create mode 100644 test/invalid-hence/empty-6.hence create mode 100644 test/invalid-hence/empty-6.hence.expected create mode 100644 test/invalid-hence/empty-7.hence create mode 100644 test/invalid-hence/empty-7.hence.expected create mode 100644 test/invalid-hence/empty-8.hence create mode 100644 test/invalid-hence/empty-8.hence.expected create mode 100644 test/invalid-hence/empty-9.hence create mode 100644 test/invalid-hence/empty-9.hence.expected (limited to 'test/invalid-hence') diff --git a/test/invalid-hence/empty-1.hence b/test/invalid-hence/empty-1.hence new file mode 100644 index 0000000..e69de29 diff --git a/test/invalid-hence/empty-1.hence.expected b/test/invalid-hence/empty-1.hence.expected new file mode 100644 index 0000000..bb92112 --- /dev/null +++ b/test/invalid-hence/empty-1.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-1.hence: Error: Expected module declaration, got end of file diff --git a/test/invalid-hence/empty-2.hence b/test/invalid-hence/empty-2.hence new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/test/invalid-hence/empty-2.hence @@ -0,0 +1 @@ + diff --git a/test/invalid-hence/empty-2.hence.expected b/test/invalid-hence/empty-2.hence.expected new file mode 100644 index 0000000..17a6d80 --- /dev/null +++ b/test/invalid-hence/empty-2.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-2.hence: Error: Expected module declaration, got end of file diff --git a/test/invalid-hence/empty-3.hence b/test/invalid-hence/empty-3.hence new file mode 100644 index 0000000..139597f --- /dev/null +++ b/test/invalid-hence/empty-3.hence @@ -0,0 +1,2 @@ + + diff --git a/test/invalid-hence/empty-3.hence.expected b/test/invalid-hence/empty-3.hence.expected new file mode 100644 index 0000000..576aae5 --- /dev/null +++ b/test/invalid-hence/empty-3.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-3.hence: Error: Expected module declaration, got end of file diff --git a/test/invalid-hence/empty-4.hence b/test/invalid-hence/empty-4.hence new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/test/invalid-hence/empty-4.hence @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/test/invalid-hence/empty-4.hence.expected b/test/invalid-hence/empty-4.hence.expected new file mode 100644 index 0000000..2d7a30b --- /dev/null +++ b/test/invalid-hence/empty-4.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-4.hence: Error: Expected module declaration, got end of file diff --git a/test/invalid-hence/empty-5.hence b/test/invalid-hence/empty-5.hence new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/test/invalid-hence/empty-5.hence @@ -0,0 +1 @@ + diff --git a/test/invalid-hence/empty-5.hence.expected b/test/invalid-hence/empty-5.hence.expected new file mode 100644 index 0000000..afd7eaf --- /dev/null +++ b/test/invalid-hence/empty-5.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-5.hence: Error: Expected module declaration, got end of file diff --git a/test/invalid-hence/empty-6.hence b/test/invalid-hence/empty-6.hence new file mode 100644 index 0000000..501a6bb --- /dev/null +++ b/test/invalid-hence/empty-6.hence @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/test/invalid-hence/empty-6.hence.expected b/test/invalid-hence/empty-6.hence.expected new file mode 100644 index 0000000..1869ba1 --- /dev/null +++ b/test/invalid-hence/empty-6.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-6.hence: Error: Expected module declaration, got end of file diff --git a/test/invalid-hence/empty-7.hence b/test/invalid-hence/empty-7.hence new file mode 100644 index 0000000..09c0ba9 --- /dev/null +++ b/test/invalid-hence/empty-7.hence @@ -0,0 +1 @@ + diff --git a/test/invalid-hence/empty-7.hence.expected b/test/invalid-hence/empty-7.hence.expected new file mode 100644 index 0000000..cf98e0c --- /dev/null +++ b/test/invalid-hence/empty-7.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-7.hence: Error: Expected module declaration, got end of file diff --git a/test/invalid-hence/empty-8.hence b/test/invalid-hence/empty-8.hence new file mode 100644 index 0000000..0b2d044 --- /dev/null +++ b/test/invalid-hence/empty-8.hence @@ -0,0 +1,4 @@ + + + + diff --git a/test/invalid-hence/empty-8.hence.expected b/test/invalid-hence/empty-8.hence.expected new file mode 100644 index 0000000..834673e --- /dev/null +++ b/test/invalid-hence/empty-8.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-8.hence: Error: Expected module declaration, got end of file diff --git a/test/invalid-hence/empty-9.hence b/test/invalid-hence/empty-9.hence new file mode 100644 index 0000000..de13416 --- /dev/null +++ b/test/invalid-hence/empty-9.hence @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/test/invalid-hence/empty-9.hence.expected b/test/invalid-hence/empty-9.hence.expected new file mode 100644 index 0000000..1b4af21 --- /dev/null +++ b/test/invalid-hence/empty-9.hence.expected @@ -0,0 +1 @@ +invalid-hence/empty-9.hence: Error: Expected module declaration, got end of file -- cgit v1.1