author | Jeff King <peff@peff.net> | |
Mon, 31 Aug 2009 02:30:16 +0000 (22:30 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 31 Aug 2009 05:04:56 +0000 (22:04 -0700) | ||
commit | 34dc6e73b01011fcbe0f314d47fd6120382ae145 | |
tree | 86236f86c6c9015677cc60ff123f36a64501bb0a | tree | snapshot |
parent | 4f6552ea4cf2f1fdfd850b17b25864c761d14580 | commit | diff |
tests: add date printing and parsing tests
Until now, there was no coverage of relative date printing
or approxidate parsing routines (mainly because we had no
way of faking the "now" time for relative date calculations,
which made consistent testing impossible).
This new script tries to exercise the basic features of
show_date and approxidate. Most of the tests are just "this
obvious thing works" to prevent future regressions, with a
few exceptions:
- We confirm the fix in 607a9e8 that relative year/month
dates in the latter half of a year round correctly.
- We confirm that the improvements in b5373e9 and 1bddb25
work.
- A few tests are marked to expect failure, which are
regressions recently introduced by the two commits
above.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Until now, there was no coverage of relative date printing
or approxidate parsing routines (mainly because we had no
way of faking the "now" time for relative date calculations,
which made consistent testing impossible).
This new script tries to exercise the basic features of
show_date and approxidate. Most of the tests are just "this
obvious thing works" to prevent future regressions, with a
few exceptions:
- We confirm the fix in 607a9e8 that relative year/month
dates in the latter half of a year round correctly.
- We confirm that the improvements in b5373e9 and 1bddb25
work.
- A few tests are marked to expect failure, which are
regressions recently introduced by the two commits
above.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0006-date.sh | [new file with mode: 0755] | blob |