mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
try explicitly setting the padding character
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39772 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
414b6be1b0
commit
e73330ea22
1 changed files with 5 additions and 0 deletions
|
@ -84,6 +84,11 @@ int main()
|
|||
|
||||
[fmt setLocale: en];
|
||||
|
||||
[fmt setPaddingCharacter: @"+"];
|
||||
PASS_EQUAL([fmt paddingCharacter], @"+", "padding character se to '+'")
|
||||
|
||||
[fmt setPaddingCharacter: @"*"]; // Subsequent tests use '*'
|
||||
|
||||
[fmt setMaximumFractionDigits: 2];
|
||||
str = [fmt stringFromNumber: num];
|
||||
|
||||
|
|
Loading…
Reference in a new issue