]> git.ipfire.org Git - thirdparty/git.git/blob - t/chainlint/inline-comment.test
Git 2.47-rc0
[thirdparty/git.git] / t / chainlint / inline-comment.test
1 test_expect_success 'inline-comment' '
2 (
3 # LINT: swallow inline comment (leaving command intact)
4 foobar && # comment 1
5 # LINT: mispositioned "&&" (correctly) swallowed with comment
6 barfoo # wrong position for &&
7 # LINT: "#" in string not misinterpreted as comment
8 flibble "not a # comment"
9 ) &&
10
11 # LINT: "#" in string in cuddled subshell not misinterpreted as comment
12 (cd foo &&
13 flibble "not a # comment")
14 '