mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
on 32bit systems constrain dates to fit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39549 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a2ed652ca2
commit
1db866fde7
4 changed files with 40 additions and 4 deletions
|
@ -37,12 +37,22 @@ int main(void)
|
|||
{
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
|
||||
PASS_EQUAL(formattedDaysSince1970(8640000000), @"17-07-23657486",
|
||||
"format date for 8640000000");
|
||||
if (sizeof(NSInteger) == 4)
|
||||
{
|
||||
PASS_EQUAL(formattedDaysSince1970(8640000000), @"02-01-4001",
|
||||
"format date for 8640000000");
|
||||
|
||||
PASS_EQUAL(formattedDaysSince1970(2147483651), @"15-07-5881580",
|
||||
"format date for 2147483651");
|
||||
PASS_EQUAL(formattedDaysSince1970(2147483651), @"02-01-4001",
|
||||
"format date for 2147483651");
|
||||
}
|
||||
else
|
||||
{
|
||||
PASS_EQUAL(formattedDaysSince1970(8640000000), @"17-07-23657486",
|
||||
"format date for 8640000000");
|
||||
|
||||
PASS_EQUAL(formattedDaysSince1970(2147483651), @"15-07-5881580",
|
||||
"format date for 2147483651");
|
||||
}
|
||||
DESTROY(arp);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ int main()
|
|||
NSEnumerator *e = [a objectEnumerator];
|
||||
NSString *s = nil;
|
||||
|
||||
NSLog(@"Got %@", a);
|
||||
while ((s = [e nextObject]) != nil)
|
||||
if ([s rangeOfString: @"testAbc"].length > 0)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue