mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
added new test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32670 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fb8ad303e3
commit
d1798099ab
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-32 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Tests/base/NSNumberFormatter/basic.m:
|
||||
Added new test.
|
||||
|
||||
2011-03-18 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||
|
||||
* Documentation/GNUmakefile (CODING-STANDARDS_TEXI_FILES,
|
||||
|
|
|
@ -26,6 +26,10 @@ int main()
|
|||
PASS_EQUAL([fmt stringFromNumber: num], @"1.01",
|
||||
"Handle leading zeroes in fractional part: 1.01")
|
||||
|
||||
num = [[[NSNumber alloc] initWithFloat: 1.1] autorelease];
|
||||
PASS_EQUAL([fmt stringFromNumber: num], @"1.1",
|
||||
"Handle leading zeroes in fractional part: 1.1")
|
||||
|
||||
[fmt setAllowsFloats: NO];
|
||||
|
||||
num = [[[NSNumber alloc] initWithFloat: 1234.567] autorelease];
|
||||
|
|
Loading…
Reference in a new issue