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>
. ./test-lib.sh
match() {
- if [ $1 = 1 ]; then
+ if test "$1" = 1
+ then
test_expect_success "wildmatch: match '$3' '$4'" "
test-wildmatch wildmatch '$3' '$4'
"
}
imatch() {
- if [ $1 = 1 ]; then
+ if test "$1" = 1
+ then
test_expect_success "iwildmatch: match '$2' '$3'" "
test-wildmatch iwildmatch '$2' '$3'
"
}
pathmatch() {
- if [ $1 = 1 ]; then
+ if test "$1" = 1
+ then
test_expect_success "pathmatch: match '$2' '$3'" "
test-wildmatch pathmatch '$2' '$3'
"