Skip to content

Commit

Permalink
test cases for #105, #113, #114, #115, #116, #117, #118
Browse files Browse the repository at this point in the history
  • Loading branch information
Niols committed Nov 25, 2019
1 parent 8c229e0 commit 00cbbe5
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/bad/2.3_token-recognition/unterminated-parameter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
${a-b |
Empty file.
4 changes: 4 additions & 0 deletions tests/bad/here-document-and-quotes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cat <<EOF
a `b' c
d `e' f `g' h
EOF
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$((((1-2)/3)*4))
Empty file.
1 change: 1 addition & 0 deletions tests/good/2.3-token-recognition/subshell_hash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`a # b`
Empty file.
3 changes: 3 additions & 0 deletions tests/good/2.4-reserved_words/keyword-after-keyword.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{ for foo in a b c; do
bar
done }
Empty file.
2 changes: 2 additions & 0 deletions tests/good/fake-arithmetic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Looks like an arithmetic expression but isn't
$((a) || (b))
Empty file.
4 changes: 4 additions & 0 deletions tests/good/you-should-not-see-this.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
for a in $(b | c <<$d)
do
e
done
Empty file.

0 comments on commit 00cbbe5

Please sign in to comment.