mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
none more check
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39656 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5629e7f5aa
commit
2e4197993e
1 changed files with 8 additions and 0 deletions
|
@ -421,6 +421,14 @@ int main()
|
|||
PASS([[date2 timeZone] isEqual: tz],
|
||||
"date year calculation preserves timezone");
|
||||
|
||||
tz = [NSTimeZone timeZoneForSecondsFromGMT: 3600];
|
||||
date2 = [NSCalendarDate dateWithYear: 2016
|
||||
month: 1 day: 6 hour: 1 minute: 0 second: 0 timeZone: tz];
|
||||
date2 = [date2 dateByAddingYears: 0
|
||||
months: 0 days: 0 hours: 0 minutes: 0 seconds: -3600];
|
||||
PASS([date2 testDateValues: 2016 : 1 : 6 : 00 : 00 : 00],
|
||||
"date year calculation check with %s", [[date2 description] cString]);
|
||||
|
||||
[arp release]; arp = nil;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue