Re: [PATCH v2 5/5] Add `human` date format tests.

2019-01-18 Thread Junio C Hamano
"Stephen P. Smith" writes: > +check_date_format() { > + format=$1 > + t=$(($TEST_DATE_NOW - $2)) > + expect=$3 Notice that neither $format nor $1 is used in this test, which means that "check_date_format" is not a generic "I can take a format parameter to check the specified one". S

[PATCH v2 5/5] Add `human` date format tests.

2019-01-17 Thread Stephen P. Smith
When using `human` several fields are suppressed depending on the time difference between the reference date and the local computer date. In cases where the difference is less than a year, the year field is supppressed. If the time is less than a day; the month and year is suppressed. Use TEST_DAT