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 <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

John Cai committed May 18, 2023 at 20:03 UTC 350c484239838679d360fd647ebe97946d9bffd0
1 file changed +13 -13
t/t1006-cat-file.sh
+13 -13
@@ -351,30 +351,30 @@ do
351 done
352
353 test_expect_success "--batch-check for a non-existent named object" '
354 - test "foobar42 missing
354 + test "foobar42 missing
355 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)"
357 '
358
359 test_expect_success "--batch-check for a non-existent hash" '
360 - test "0000000000000000000000000000000000000042 missing
360 + test "0000000000000000000000000000000000000042 missing
361 0000000000000000000000000000000000000084 missing" = \
362 "$( ( echo 0000000000000000000000000000000000000042 &&
363 echo_without_newline 0000000000000000000000000000000000000084 ) |
364 - git cat-file --batch-check)"
364 + git cat-file --batch-check)"
365 '
366
367 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
369 $tag_content
370 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)"
374 '
375
376 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)"
378 '
379
380 test_expect_success 'empty --batch-check notices missing object' '
@@ -425,13 +425,13 @@ deadbeef missing
425 missing"
426
427 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)"
430 '
431
432 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)"
435 '
436
437 test_expect_success FUNNYNAMES '--batch-check, -z with newline in input' '