The twelfth batch
[git.git] / t / chainlint / block.test
bloba1b6b4dd329311055eb672e630adb457421dc084
1 test_expect_success 'block' '
3 # LINT: missing "&&" after first "echo"
4         foo &&
5         {
6                 echo a
7                 echo b
8         } &&
9         bar &&
10 # LINT: missing "&&" at closing "}"
11         {
12                 echo c
13         }
14         baz
15 ) &&
17 # LINT: ";" not allowed in place of "&&"
19         echo a; echo b
20 } &&
21 { echo a; echo b; } &&
23 # LINT: "}" inside string not mistaken as end of block
25         echo "${var}9" &&
26         echo "done"
27 } &&
28 finis