mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32319 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7dc2d9558d
commit
2b31f0d340
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,6 @@ int main()
|
|||
PASS(NSNumberFormatterBehaviorDefault == [fmt formatterBehavior],
|
||||
"a new formatter can have the default behavior set")
|
||||
|
||||
num = [[[NSNumber alloc] initWithFloat: 1234.567] autorelease];
|
||||
|
||||
str = [fmt stringFromNumber: [NSDecimalNumber notANumber]];
|
||||
PASS_EQUAL(str, @"NaN", "notANumber special case")
|
||||
|
||||
|
@ -69,6 +67,8 @@ int main()
|
|||
|
||||
START_SET(NSLOCALE_SUPPORTED)
|
||||
|
||||
num = [[[NSNumber alloc] initWithFloat: 1234.567] autorelease];
|
||||
|
||||
str = [fmt stringFromNumber: num];
|
||||
PASS_EQUAL(str, @"1235", "default 10.4 format same as Cocoa")
|
||||
|
||||
|
|
Loading…
Reference in a new issue