pretty tests: simplify %aI/%cI date format test
Change a needlessly complex test for the %aI/%cI date formats (iso-strict) added in466fb6742d
(pretty: provide a strict ISO 8601 date format, 2014-08-29) to instead use the same pattern used to test %as/%cs since0df621172d
(pretty: provide short date format, 2019-11-19). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
311531c9de
commit
fbfcaec8d8
@ -527,8 +527,7 @@ test_expect_success 'strbuf_utf8_replace() not producing NUL' '
|
||||
|
||||
# ISO strict date format
|
||||
test_expect_success 'ISO and ISO-strict date formats display the same values' '
|
||||
git log --format=%ai%n%ci |
|
||||
sed -e "s/ /T/; s/ //; s/..\$/:&/" >expected &&
|
||||
git log --format=%ad%n%cd --date=iso-strict >expected &&
|
||||
git log --format=%aI%n%cI >actual &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
Loading…
Reference in New Issue
Block a user