From 00cbbe5586f648fe0774c9509906689ce90f1565 Mon Sep 17 00:00:00 2001 From: Nicolas Jeannerod Date: Mon, 25 Nov 2019 17:16:36 +0100 Subject: [PATCH] test cases for #105, #113, #114, #115, #116, #117, #118 --- tests/bad/2.3_token-recognition/unterminated-parameter.sh | 1 + .../bad/2.3_token-recognition/unterminated-parameter.sh.open | 0 tests/bad/here-document-and-quotes.sh | 4 ++++ tests/bad/here-document-and-quotes.sh.open | 0 .../good/2.3-token-recognition/arithmetic-and-parentheses.sh | 1 + .../2.3-token-recognition/arithmetic-and-parentheses.sh.open | 0 tests/good/2.3-token-recognition/subshell_hash.sh | 1 + tests/good/2.3-token-recognition/subshell_hash.sh.open | 0 tests/good/2.4-reserved_words/keyword-after-keyword.sh | 3 +++ tests/good/2.4-reserved_words/keyword-after-keyword.sh.open | 0 tests/good/fake-arithmetic.sh | 2 ++ tests/good/fake-arithmetic.sh.open | 0 tests/good/you-should-not-see-this.sh | 4 ++++ tests/good/you-should-not-see-this.sh.open | 0 14 files changed, 16 insertions(+) create mode 100644 tests/bad/2.3_token-recognition/unterminated-parameter.sh create mode 100644 tests/bad/2.3_token-recognition/unterminated-parameter.sh.open create mode 100644 tests/bad/here-document-and-quotes.sh create mode 100644 tests/bad/here-document-and-quotes.sh.open create mode 100644 tests/good/2.3-token-recognition/arithmetic-and-parentheses.sh create mode 100644 tests/good/2.3-token-recognition/arithmetic-and-parentheses.sh.open create mode 100644 tests/good/2.3-token-recognition/subshell_hash.sh create mode 100644 tests/good/2.3-token-recognition/subshell_hash.sh.open create mode 100644 tests/good/2.4-reserved_words/keyword-after-keyword.sh create mode 100644 tests/good/2.4-reserved_words/keyword-after-keyword.sh.open create mode 100644 tests/good/fake-arithmetic.sh create mode 100644 tests/good/fake-arithmetic.sh.open create mode 100644 tests/good/you-should-not-see-this.sh create mode 100644 tests/good/you-should-not-see-this.sh.open diff --git a/tests/bad/2.3_token-recognition/unterminated-parameter.sh b/tests/bad/2.3_token-recognition/unterminated-parameter.sh new file mode 100644 index 00000000..70f54982 --- /dev/null +++ b/tests/bad/2.3_token-recognition/unterminated-parameter.sh @@ -0,0 +1 @@ +${a-b | diff --git a/tests/bad/2.3_token-recognition/unterminated-parameter.sh.open b/tests/bad/2.3_token-recognition/unterminated-parameter.sh.open new file mode 100644 index 00000000..e69de29b diff --git a/tests/bad/here-document-and-quotes.sh b/tests/bad/here-document-and-quotes.sh new file mode 100644 index 00000000..3441f954 --- /dev/null +++ b/tests/bad/here-document-and-quotes.sh @@ -0,0 +1,4 @@ +cat <