wildmatch test: use more standard shell style

Change the wildmatch test to use more standard shell style, usually we use "if test" not "if [". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Jan 30, 2018 at 21:21 UTC 5008ba8c5e2bbb87a35a25440f9e920c511de674
1 file changed +6 -3
t/t3070-wildmatch.sh
+6 -3
@@ -5,7 +5,8 @@ test_description='wildmatch tests'
5 . ./test-lib.sh
6
7 match() {
8 - if [ $1 = 1 ]; then
8 + if test "$1" = 1
9 + then
10 test_expect_success "wildmatch: match '$3' '$4'" "
11 test-wildmatch wildmatch '$3' '$4'
12 "
@@ -17,7 +18,8 @@ match() {
18 }
19
20 imatch() {
20 - if [ $1 = 1 ]; then
21 + if test "$1" = 1
22 + then
23 test_expect_success "iwildmatch: match '$2' '$3'" "
24 test-wildmatch iwildmatch '$2' '$3'
25 "
@@ -29,7 +31,8 @@ imatch() {
31 }
32
33 pathmatch() {
32 - if [ $1 = 1 ]; then
34 + if test "$1" = 1
35 + then
36 test_expect_success "pathmatch: match '$2' '$3'" "
37 test-wildmatch pathmatch '$2' '$3'
38 "