Check that today 24:00:00 is the same as tomorrow 00:00:00

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38009 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2014-07-25 10:03:52 +00:00
parent 7124954f2c
commit f13bdb2ad2

View file

@ -353,6 +353,18 @@ int main()
PASS([date2 testDateValues: 2002 : 10 : 29 : 00 : 30 : 00],
"date day calculation check with %s", [[date2 description] cString]);
date2 = [NSCalendarDate dateWithString: @"2002-10-27 00:00:00"
calendarFormat: val2
locale: locale];
PASS([date2 testDateValues: 2002 : 10 : 27 : 00 : 00 : 00],
"date day calculation check with %s", [[date2 description] cString]);
date2 = [NSCalendarDate dateWithString: @"2002-10-26 24:00:00"
calendarFormat: val2
locale: locale];
PASS([date2 testDateValues: 2002 : 10 : 27 : 00 : 00 : 00],
"date day calculation check with 2002-10-26 24:00:00");
/* Months calculation checks */
date2 = [NSCalendarDate dateWithString: @"2002-10-27 00:30:00"
calendarFormat: val2