mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
6e6720d36f
commit
db78d4cd8e
6 changed files with 160 additions and 256 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue