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:
rfm 2016-04-11 10:53:41 +00:00
parent 5629e7f5aa
commit 2e4197993e

View file

@ -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;
}