mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
set the locale for the tests to be the system locale
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39536 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
34ad8bb0a5
commit
f32f5c6f84
1 changed files with 5 additions and 1 deletions
|
@ -56,10 +56,14 @@ int main()
|
|||
PASS_EQUAL(str, @"NaN", "notANumber special case")
|
||||
|
||||
START_SET("NSLocale")
|
||||
NSLocale *sys;
|
||||
if (!NSLOCALE_SUPPORTED)
|
||||
SKIP("NSLocale not supported\nThe ICU library was not available when GNUstep-base was built")
|
||||
|
||||
PASS([fmt getObjectValue: &num forString: @"0.00" errorDescription: nil]
|
||||
sys = [NSLocale systemLocale];
|
||||
[fmt setLocale: sys];
|
||||
|
||||
PASS([fmt getObjectValue: &num forString: @"0.00" errorDescription: 0]
|
||||
&& num != nil, "formatting suceeded")
|
||||
if (testPassed)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue