mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
7124954f2c
commit
f13bdb2ad2
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue