Skip to content

Commit 2f44f11

Browse files
AbdAlRahmanGadgitster
authored andcommitted
t7004: use single quotes instead of double quotes
Some test bodies and test description are surrounded with double quotes instead of single quotes, violating our coding style. Signed-off-by: AbdAlRahman Gad <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c07b695 commit 2f44f11

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

t/t7004-tag.sh

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ test_expect_success 'creating third commit without tag' '
15831583

15841584
# simple linear checks of --continue
15851585

1586-
test_expect_success 'checking that first commit is in all tags (hash)' "
1586+
test_expect_success 'checking that first commit is in all tags (hash)' '
15871587
hash3=$(git rev-parse HEAD) &&
15881588
cat >expected <<-\EOF &&
15891589
v0.2.1
@@ -1594,10 +1594,10 @@ test_expect_success 'checking that first commit is in all tags (hash)' "
15941594
EOF
15951595
git tag -l --contains $hash1 v* >actual &&
15961596
test_cmp expected actual
1597-
"
1597+
'
15981598

15991599
# other ways of specifying the commit
1600-
test_expect_success 'checking that first commit is in all tags (tag)' "
1600+
test_expect_success 'checking that first commit is in all tags (tag)' '
16011601
cat >expected <<-\EOF &&
16021602
v0.2.1
16031603
v1.0
@@ -1607,9 +1607,9 @@ test_expect_success 'checking that first commit is in all tags (tag)' "
16071607
EOF
16081608
git tag -l --contains v1.0 v* >actual &&
16091609
test_cmp expected actual
1610-
"
1610+
'
16111611

1612-
test_expect_success 'checking that first commit is in all tags (relative)' "
1612+
test_expect_success 'checking that first commit is in all tags (relative)' '
16131613
cat >expected <<-\EOF &&
16141614
v0.2.1
16151615
v1.0
@@ -1619,33 +1619,33 @@ test_expect_success 'checking that first commit is in all tags (relative)' "
16191619
EOF
16201620
git tag -l --contains HEAD~2 v* >actual &&
16211621
test_cmp expected actual
1622-
"
1622+
'
16231623

16241624
# All the --contains tests above, but with --no-contains
1625-
test_expect_success 'checking that first commit is not listed in any tag with --no-contains (hash)' "
1625+
test_expect_success 'checking that first commit is not listed in any tag with --no-contains (hash)' '
16261626
git tag -l --no-contains $hash1 v* >actual &&
16271627
test_must_be_empty actual
1628-
"
1628+
'
16291629

1630-
test_expect_success 'checking that first commit is in all tags (tag)' "
1630+
test_expect_success 'checking that first commit is in all tags (tag)' '
16311631
git tag -l --no-contains v1.0 v* >actual &&
16321632
test_must_be_empty actual
1633-
"
1633+
'
16341634

1635-
test_expect_success 'checking that first commit is in all tags (relative)' "
1635+
test_expect_success 'checking that first commit is in all tags (relative)' '
16361636
git tag -l --no-contains HEAD~2 v* >actual &&
16371637
test_must_be_empty actual
1638-
"
1638+
'
16391639

1640-
test_expect_success 'checking that second commit only has one tag' "
1640+
test_expect_success 'checking that second commit only has one tag' '
16411641
cat >expected <<-\EOF &&
16421642
v2.0
16431643
EOF
16441644
git tag -l --contains $hash2 v* >actual &&
16451645
test_cmp expected actual
1646-
"
1646+
'
16471647

1648-
test_expect_success 'inverse of the last test, with --no-contains' "
1648+
test_expect_success 'inverse of the last test, with --no-contains' '
16491649
cat >expected <<-\EOF &&
16501650
v0.2.1
16511651
v1.0
@@ -1654,14 +1654,14 @@ test_expect_success 'inverse of the last test, with --no-contains' "
16541654
EOF
16551655
git tag -l --no-contains $hash2 v* >actual &&
16561656
test_cmp expected actual
1657-
"
1657+
'
16581658

1659-
test_expect_success 'checking that third commit has no tags' "
1659+
test_expect_success 'checking that third commit has no tags' '
16601660
git tag -l --contains $hash3 v* >actual &&
16611661
test_must_be_empty actual
1662-
"
1662+
'
16631663

1664-
test_expect_success 'conversely --no-contains on the third commit lists all tags' "
1664+
test_expect_success 'conversely --no-contains on the third commit lists all tags' '
16651665
cat >expected <<-\EOF &&
16661666
v0.2.1
16671667
v1.0
@@ -1671,7 +1671,7 @@ test_expect_success 'conversely --no-contains on the third commit lists all tags
16711671
EOF
16721672
git tag -l --no-contains $hash3 v* >actual &&
16731673
test_cmp expected actual
1674-
"
1674+
'
16751675

16761676
# how about a simple merge?
16771677

@@ -1692,7 +1692,7 @@ test_expect_success 'checking that branch head only has one tag' '
16921692
test_cmp expected actual
16931693
'
16941694

1695-
test_expect_success 'checking that branch head with --no-contains lists all but one tag' "
1695+
test_expect_success 'checking that branch head with --no-contains lists all but one tag' '
16961696
cat >expected <<-\EOF &&
16971697
v0.2.1
16981698
v1.0
@@ -1702,22 +1702,22 @@ test_expect_success 'checking that branch head with --no-contains lists all but
17021702
EOF
17031703
git tag -l --no-contains $hash4 v* >actual &&
17041704
test_cmp expected actual
1705-
"
1705+
'
17061706

17071707
test_expect_success 'merging original branch into this branch' '
17081708
git merge --strategy=ours main &&
17091709
git tag v4.0
17101710
'
17111711

1712-
test_expect_success 'checking that original branch head has one tag now' "
1712+
test_expect_success 'checking that original branch head has one tag now' '
17131713
cat >expected <<-\EOF &&
17141714
v4.0
17151715
EOF
17161716
git tag -l --contains $hash3 v* >actual &&
17171717
test_cmp expected actual
1718-
"
1718+
'
17191719

1720-
test_expect_success 'checking that original branch head with --no-contains lists all but one tag now' "
1720+
test_expect_success 'checking that original branch head with --no-contains lists all but one tag now' '
17211721
cat >expected <<-\EOF &&
17221722
v0.2.1
17231723
v1.0
@@ -1728,9 +1728,9 @@ test_expect_success 'checking that original branch head with --no-contains lists
17281728
EOF
17291729
git tag -l --no-contains $hash3 v* >actual &&
17301730
test_cmp expected actual
1731-
"
1731+
'
17321732

1733-
test_expect_success 'checking that initial commit is in all tags' "
1733+
test_expect_success 'checking that initial commit is in all tags' '
17341734
cat >expected <<-\EOF &&
17351735
v0.2.1
17361736
v1.0
@@ -1742,7 +1742,7 @@ test_expect_success 'checking that initial commit is in all tags' "
17421742
EOF
17431743
git tag -l --contains $hash1 v* >actual &&
17441744
test_cmp expected actual
1745-
"
1745+
'
17461746

17471747
test_expect_success 'checking that --contains can be used in non-list mode' '
17481748
cat >expected <<-\EOF &&
@@ -1758,10 +1758,10 @@ test_expect_success 'checking that --contains can be used in non-list mode' '
17581758
test_cmp expected actual
17591759
'
17601760

1761-
test_expect_success 'checking that initial commit is in all tags with --no-contains' "
1761+
test_expect_success 'checking that initial commit is in all tags with --no-contains' '
17621762
git tag -l --no-contains $hash1 v* >actual &&
17631763
test_must_be_empty actual
1764-
"
1764+
'
17651765

17661766
# mixing modes and options:
17671767

@@ -1798,16 +1798,16 @@ test_expect_success 'mixing incompatibles modes and options is forbidden' '
17981798

17991799
for option in --contains --with --no-contains --without --merged --no-merged --points-at
18001800
do
1801-
test_expect_success "mixing incompatible modes with $option is forbidden" "
1801+
test_expect_success "mixing incompatible modes with $option is forbidden" '
18021802
test_must_fail git tag -d $option HEAD &&
18031803
test_must_fail git tag -d $option HEAD some-tag &&
18041804
test_must_fail git tag -v $option HEAD
1805-
"
1806-
test_expect_success "Doing 'git tag --list-like $option <commit> <pattern> is permitted" "
1805+
'
1806+
test_expect_success "Doing 'git tag --list-like $option <commit> <pattern> is permitted" '
18071807
git tag -n $option HEAD HEAD &&
18081808
git tag $option HEAD HEAD &&
18091809
git tag $option
1810-
"
1810+
'
18111811
done
18121812

18131813
# check points-at
@@ -2183,7 +2183,7 @@ test_expect_success 'git tag -l with --format="%(rest)" must fail' '
21832183
test_must_fail git tag -l --format="%(rest)" "v1*"
21842184
'
21852185

2186-
test_expect_success "set up color tests" '
2186+
test_expect_success 'set up color tests' '
21872187
echo "<RED>v1.0<RESET>" >expect.color &&
21882188
echo "v1.0" >expect.bare &&
21892189
color_args="--format=%(color:red)%(refname:short) --list v1.0"

0 commit comments

Comments
 (0)