summaryrefslogtreecommitdiffstats
path: root/t/t3020-ls-files-error-unmatch.sh
diff options
context:
space:
mode:
authorLi Linchao <lilinchao@oschina.cn>2022-07-03 17:49:09 +0200
committerJunio C Hamano <gitster@pobox.com>2022-07-06 19:01:04 +0200
commit18337d406f170bebc303f1b29bd53019ee851a41 (patch)
treeb80b9015d14ecf72c4c0a17845c85262ba5e16e4 /t/t3020-ls-files-error-unmatch.sh
parentGit 2.37 (diff)
downloadgit-18337d406f170bebc303f1b29bd53019ee851a41.tar.xz
git-18337d406f170bebc303f1b29bd53019ee851a41.zip
ls-files: update test style
Update test style in t/t30[*].sh for uniformity, that's to keep test title the same line with helper function itself, and fix some indentions. Add a new section "recommended style" in t/README to encourage people to use more modern style in test. Signed-off-by: Li Linchao <lilinchao@oschina.cn> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3020-ls-files-error-unmatch.sh')
-rwxr-xr-xt/t3020-ls-files-error-unmatch.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/t3020-ls-files-error-unmatch.sh b/t/t3020-ls-files-error-unmatch.sh
index 2cbcbc0721..133593d23c 100755
--- a/t/t3020-ls-files-error-unmatch.sh
+++ b/t/t3020-ls-files-error-unmatch.sh
@@ -19,12 +19,12 @@ test_expect_success 'setup' '
git commit -m "add foo bar"
'
-test_expect_success \
- 'git ls-files --error-unmatch should fail with unmatched path.' \
- 'test_must_fail git ls-files --error-unmatch foo bar-does-not-match'
+test_expect_success 'git ls-files --error-unmatch should fail with unmatched path.' '
+ test_must_fail git ls-files --error-unmatch foo bar-does-not-match
+'
-test_expect_success \
- 'git ls-files --error-unmatch should succeed with matched paths.' \
- 'git ls-files --error-unmatch foo bar'
+test_expect_success 'git ls-files --error-unmatch should succeed with matched paths.' '
+ git ls-files --error-unmatch foo bar
+'
test_done