Add support for 'concurrent' NSOperations, but remove the pools of theads and

and run normal operations each in their own until we re-instate pools.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32440 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-03-03 10:56:47 +00:00
parent 6e6720d36f
commit db78d4cd8e
6 changed files with 160 additions and 256 deletions

View file

@ -22,15 +22,13 @@ int main()
PASS_EQUAL(str, @"1,234.57", "default format same as Cocoa");
num = [[[NSNumber alloc] initWithFloat: 1.01] autorelease];
str = [fmt stringFromNumber: num];
PASS_EQUAL(str, @"1.01", "Handle leading zeroes in fractional part: 1.01");
PASS_EQUAL([fmt stringFromNumber: num], @"1.01",
"Handle leading zeroes in fractional part: 1.01");
[fmt setAllowsFloats: NO];
str = [fmt stringForObjectValue: num];
PASS_EQUAL(str, @"1,235", "round up for fractional part >0.5");
PASS_EQUAL([fmt stringForObjectValue: num], @"1,235",
"round up for fractional part >0.5");
num = [[[NSNumber alloc] initWithFloat: 1234.432] autorelease];
str = [fmt stringForObjectValue: num];