. ./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'
"