From d44af0e0863c192e1d1513519a2b8f0651fb9b31 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 24 Jan 2022 18:14:25 +0100 Subject: Add more test cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- tests/comment_cont.mk | 3 +++ tests/cont_without_ws.mk | 3 +++ tests/noninitial_bad_ws.mk | 2 ++ tests/unindented_cont.mk | 3 +++ 4 files changed, 11 insertions(+) create mode 100644 tests/comment_cont.mk create mode 100644 tests/cont_without_ws.mk create mode 100644 tests/noninitial_bad_ws.mk create mode 100644 tests/unindented_cont.mk diff --git a/tests/comment_cont.mk b/tests/comment_cont.mk new file mode 100644 index 0000000..95b2635 --- /dev/null +++ b/tests/comment_cont.mk @@ -0,0 +1,3 @@ +#:2: +#\ + this line is a comment because of the continuation above diff --git a/tests/cont_without_ws.mk b/tests/cont_without_ws.mk new file mode 100644 index 0000000..0b70d30 --- /dev/null +++ b/tests/cont_without_ws.mk @@ -0,0 +1,3 @@ +#:2: +OBJ = make-will-actually\ +insert-a-whitespace diff --git a/tests/noninitial_bad_ws.mk b/tests/noninitial_bad_ws.mk new file mode 100644 index 0000000..93ad40e --- /dev/null +++ b/tests/noninitial_bad_ws.mk @@ -0,0 +1,2 @@ +#:6: + foo: bar # This line is preceded by a vertical tab following a diff --git a/tests/unindented_cont.mk b/tests/unindented_cont.mk new file mode 100644 index 0000000..ebd5adc --- /dev/null +++ b/tests/unindented_cont.mk @@ -0,0 +1,3 @@ +#:2: +OBJ = \ +obj.o -- cgit v1.2.3-70-g09d2