Skip to content

Commit 32d51d4

Browse files
committed
t0040: remove unused test helpers
9a00138 (Fix tests under GETTEXT_POISON on parseopt, 2012-08-27) introduced check_i18n, but the helper was never used from the beginning. The same commit also introduced check_unknown_i18n to replace the helper check_unknown and changed all users of the latter to use the former, but failed to remove check_unknown itself. Signed-off-by: Junio C Hamano <[email protected]>
1 parent ab6b28b commit 32d51d4

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

t/t0040-parse-options.sh

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,6 @@ check() {
8181
test_cmp expect output
8282
}
8383

84-
check_i18n() {
85-
what="$1" &&
86-
shift &&
87-
expect="$1" &&
88-
shift &&
89-
sed "s/^$what .*/$what $expect/" <expect.template >expect &&
90-
test-parse-options $* >output 2>output.err &&
91-
test_must_be_empty output.err &&
92-
test_i18ncmp expect output
93-
}
94-
95-
check_unknown() {
96-
case "$1" in
97-
--*)
98-
echo error: unknown option \`${1#--}\' >expect ;;
99-
-*)
100-
echo error: unknown switch \`${1#-}\' >expect ;;
101-
esac &&
102-
cat expect.err >>expect &&
103-
test_must_fail test-parse-options $* >output 2>output.err &&
104-
test_must_be_empty output &&
105-
test_cmp expect output.err
106-
}
107-
10884
check_unknown_i18n() {
10985
case "$1" in
11086
--*)

0 commit comments

Comments
 (0)