Skip to content

Commit 350c484

Browse files
john-caigitster
authored andcommitted
t1006-cat-file: modernize test format
Some tests in t1006-cat-file.sh used the older four space indent format. Update these to use tabs. Signed-off-by: John Cai <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a10bb2d commit 350c484

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

t/t1006-cat-file.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -351,30 +351,30 @@ do
351351
done
352352

353353
test_expect_success "--batch-check for a non-existent named object" '
354-
test "foobar42 missing
354+
test "foobar42 missing
355355
foobar84 missing" = \
356-
"$( ( echo foobar42 && echo_without_newline foobar84 ) | git cat-file --batch-check)"
356+
"$( ( echo foobar42 && echo_without_newline foobar84 ) | git cat-file --batch-check)"
357357
'
358358

359359
test_expect_success "--batch-check for a non-existent hash" '
360-
test "0000000000000000000000000000000000000042 missing
360+
test "0000000000000000000000000000000000000042 missing
361361
0000000000000000000000000000000000000084 missing" = \
362362
"$( ( echo 0000000000000000000000000000000000000042 &&
363363
echo_without_newline 0000000000000000000000000000000000000084 ) |
364-
git cat-file --batch-check)"
364+
git cat-file --batch-check)"
365365
'
366366

367367
test_expect_success "--batch for an existent and a non-existent hash" '
368-
test "$tag_sha1 tag $tag_size
368+
test "$tag_sha1 tag $tag_size
369369
$tag_content
370370
0000000000000000000000000000000000000000 missing" = \
371-
"$( ( echo $tag_sha1 &&
372-
echo_without_newline 0000000000000000000000000000000000000000 ) |
373-
git cat-file --batch)"
371+
"$( ( echo $tag_sha1 &&
372+
echo_without_newline 0000000000000000000000000000000000000000 ) |
373+
git cat-file --batch)"
374374
'
375375

376376
test_expect_success "--batch-check for an empty line" '
377-
test " missing" = "$(echo | git cat-file --batch-check)"
377+
test " missing" = "$(echo | git cat-file --batch-check)"
378378
'
379379

380380
test_expect_success 'empty --batch-check notices missing object' '
@@ -425,13 +425,13 @@ deadbeef missing
425425
missing"
426426

427427
test_expect_success "--batch-check with multiple sha1s gives correct format" '
428-
test "$batch_check_output" = \
429-
"$(echo_without_newline "$batch_check_input" | git cat-file --batch-check)"
428+
test "$batch_check_output" = \
429+
"$(echo_without_newline "$batch_check_input" | git cat-file --batch-check)"
430430
'
431431

432432
test_expect_success "--batch-check, -z with multiple sha1s gives correct format" '
433-
echo_without_newline_nul "$batch_check_input" >in &&
434-
test "$batch_check_output" = "$(git cat-file --batch-check -z <in)"
433+
echo_without_newline_nul "$batch_check_input" >in &&
434+
test "$batch_check_output" = "$(git cat-file --batch-check -z <in)"
435435
'
436436

437437
test_expect_success FUNNYNAMES '--batch-check, -z with newline in input' '

0 commit comments

Comments
 (0)