Skip to content

Commit

Permalink
i18n: use test_i18ncmp in t7500
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Apr 13, 2011
1 parent 6938297 commit 29853c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/t7500-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ commit_msg_is () {

printf "%s" "$(git log --pretty=format:%s%b -1)" >$expect &&
printf "%s" "$1" >$actual &&
test_cmp $expect $actual
test_i18ncmp $expect $actual
}

# A sanity check to see if commit is working at all.
Expand Down Expand Up @@ -72,15 +72,15 @@ test_expect_success 'adding comments to a template should not commit' '
)
'

test_expect_success C_LOCALE_OUTPUT 'adding real content to a template should commit' '
test_expect_success 'adding real content to a template should commit' '
(
test_set_editor "$TEST_DIRECTORY"/t7500/add-content &&
git commit --template "$TEMPLATE"
) &&
commit_msg_is "template linecommit message"
'

test_expect_success C_LOCALE_OUTPUT '-t option should be short for --template' '
test_expect_success '-t option should be short for --template' '
echo "short template" > "$TEMPLATE" &&
echo "new content" >> foo &&
git add foo &&
Expand All @@ -91,7 +91,7 @@ test_expect_success C_LOCALE_OUTPUT '-t option should be short for --template' '
commit_msg_is "short templatecommit message"
'

test_expect_success C_LOCALE_OUTPUT 'config-specified template should commit' '
test_expect_success 'config-specified template should commit' '
echo "new template" > "$TEMPLATE" &&
git config commit.template "$TEMPLATE" &&
echo "more content" >> foo &&
Expand Down Expand Up @@ -290,7 +290,7 @@ test_expect_success 'commit --squash works with -c for same commit' '
commit_msg_is "squash! edited commit"
'

test_expect_success C_LOCALE_OUTPUT 'commit --squash works with editor' '
test_expect_success 'commit --squash works with editor' '
commit_for_rebase_autosquash_setup &&
test_set_editor "$TEST_DIRECTORY"/t7500/add-content &&
git commit --squash HEAD~1 &&
Expand Down

0 comments on commit 29853c8

Please sign in to comment.