зеркало из https://github.com/microsoft/git.git
wildmatch test: indent with tabs, not spaces
Replace the 4-width mixed space & tab indentation in this file with indentation with tabs as we do in most of the rest of our tests. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
728c573803
Коммит
a4a136f56e
|
@ -5,39 +5,39 @@ test_description='wildmatch tests'
|
|||
. ./test-lib.sh
|
||||
|
||||
match() {
|
||||
if [ $1 = 1 ]; then
|
||||
test_expect_success "wildmatch: match '$3' '$4'" "
|
||||
test-wildmatch wildmatch '$3' '$4'
|
||||
"
|
||||
else
|
||||
test_expect_success "wildmatch: no match '$3' '$4'" "
|
||||
! test-wildmatch wildmatch '$3' '$4'
|
||||
"
|
||||
fi
|
||||
if [ $1 = 1 ]; then
|
||||
test_expect_success "wildmatch: match '$3' '$4'" "
|
||||
test-wildmatch wildmatch '$3' '$4'
|
||||
"
|
||||
else
|
||||
test_expect_success "wildmatch: no match '$3' '$4'" "
|
||||
! test-wildmatch wildmatch '$3' '$4'
|
||||
"
|
||||
fi
|
||||
}
|
||||
|
||||
imatch() {
|
||||
if [ $1 = 1 ]; then
|
||||
test_expect_success "iwildmatch: match '$2' '$3'" "
|
||||
test-wildmatch iwildmatch '$2' '$3'
|
||||
"
|
||||
else
|
||||
test_expect_success "iwildmatch: no match '$2' '$3'" "
|
||||
! test-wildmatch iwildmatch '$2' '$3'
|
||||
"
|
||||
fi
|
||||
if [ $1 = 1 ]; then
|
||||
test_expect_success "iwildmatch: match '$2' '$3'" "
|
||||
test-wildmatch iwildmatch '$2' '$3'
|
||||
"
|
||||
else
|
||||
test_expect_success "iwildmatch: no match '$2' '$3'" "
|
||||
! test-wildmatch iwildmatch '$2' '$3'
|
||||
"
|
||||
fi
|
||||
}
|
||||
|
||||
pathmatch() {
|
||||
if [ $1 = 1 ]; then
|
||||
test_expect_success "pathmatch: match '$2' '$3'" "
|
||||
test-wildmatch pathmatch '$2' '$3'
|
||||
"
|
||||
else
|
||||
test_expect_success "pathmatch: no match '$2' '$3'" "
|
||||
! test-wildmatch pathmatch '$2' '$3'
|
||||
"
|
||||
fi
|
||||
if [ $1 = 1 ]; then
|
||||
test_expect_success "pathmatch: match '$2' '$3'" "
|
||||
test-wildmatch pathmatch '$2' '$3'
|
||||
"
|
||||
else
|
||||
test_expect_success "pathmatch: no match '$2' '$3'" "
|
||||
! test-wildmatch pathmatch '$2' '$3'
|
||||
"
|
||||
fi
|
||||
}
|
||||
|
||||
# Basic wildmat features
|
||||
|
|
Загрузка…
Ссылка в новой задаче