mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
a couple more tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32373 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e25cf16b52
commit
2eab3a6acd
1 changed files with 12 additions and 0 deletions
|
@ -44,6 +44,18 @@ int main()
|
||||||
== [NSNumberFormatter defaultFormatterBehavior],
|
== [NSNumberFormatter defaultFormatterBehavior],
|
||||||
"default behavior can be changed to NSNumberFormatterBehavior10_4")
|
"default behavior can be changed to NSNumberFormatterBehavior10_4")
|
||||||
|
|
||||||
|
fmt = [[[NSNumberFormatter alloc] init] autorelease];
|
||||||
|
PASS([fmt getObjectValue: &num forString: @"0.00" errorDescription: nil]
|
||||||
|
&& num != nil, "formatting tuceeded")
|
||||||
|
if (testPassed)
|
||||||
|
{
|
||||||
|
NSLog(@"number: %@", num);
|
||||||
|
PASS(NO == [num isEqual: [NSDecimalNumber notANumber]],
|
||||||
|
"is not equal to NaN")
|
||||||
|
PASS(YES == [num isEqual: [NSDecimalNumber zero]],
|
||||||
|
"is equal to zero")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
fmt = [[[NSNumberFormatter alloc] init] autorelease];
|
fmt = [[[NSNumberFormatter alloc] init] autorelease];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue