Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 8ade9b1

Browse files
moygitster
authored andcommitted
t4000-diff-format.sh: modernize style
Signed-off-by: Matthieu Moy <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent edca415 commit 8ade9b1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

t/t4000-diff-format.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ line 3'
1515
cat path0 >path1
1616
chmod +x path1
1717

18-
test_expect_success \
19-
'update-index --add two files with and without +x.' \
20-
'git update-index --add path0 path1'
18+
test_expect_success 'update-index --add two files with and without +x.' '
19+
git update-index --add path0 path1
20+
'
2121

2222
mv path0 path0-
2323
sed -e 's/line/Line/' <path0- >path0
2424
chmod +x path0
2525
rm -f path1
26-
test_expect_success \
27-
'git diff-files -p after editing work tree.' \
28-
'git diff-files -p >current'
26+
test_expect_success 'git diff-files -p after editing work tree.' '
27+
git diff-files -p >actual
28+
'
2929

3030
# that's as far as it comes
3131
if [ "$(git config --get core.filemode)" = false ]
@@ -55,8 +55,8 @@ deleted file mode 100755
5555
-line 3
5656
EOF
5757

58-
test_expect_success \
59-
'validate git diff-files -p output.' \
60-
'compare_diff_patch current expected'
58+
test_expect_success 'validate git diff-files -p output.' '
59+
compare_diff_patch expected actual
60+
'
6161

6262
test_done

0 commit comments

Comments
 (0)