Author: rfm
Date: Sun Apr 17 17:30:55 2016
New Revision: 39675

URL: http://svn.gna.org/viewcvs/gnustep?rev=39675&view=rev
Log:
Check that we have the locale 'en'

Modified:
    libs/base/trunk/Tests/base/NSNumberFormatter/basic10_4.m

Modified: libs/base/trunk/Tests/base/NSNumberFormatter/basic10_4.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tests/base/NSNumberFormatter/basic10_4.m?rev=39675&r1=39674&r2=39675&view=diff
==============================================================================
--- libs/base/trunk/Tests/base/NSNumberFormatter/basic10_4.m    (original)
+++ libs/base/trunk/Tests/base/NSNumberFormatter/basic10_4.m    Sun Apr 17 
17:30:55 2016
@@ -57,6 +57,7 @@
 
     START_SET("NSLocale")
       NSLocale  *sys;
+      NSLocale  *en;
       if (!NSLOCALE_SUPPORTED)
         SKIP("NSLocale not supported\nThe ICU library was not available when 
GNUstep-base was built")
       
@@ -78,7 +79,10 @@
       str = [fmt stringFromNumber: num];
       PASS_EQUAL(str, @"1235", "default 10.4 format same as Cocoa")
 
-      [fmt setLocale: [[NSLocale alloc] initWithLocaleIdentifier: @"en"]];
+      en = [[[NSLocale alloc] initWithLocaleIdentifier: @"en"] autorelease];
+      PASS_EQUAL([en localeIdentifier], @"en", "have locale 'en'");
+
+      [fmt setLocale: en];
 
       [fmt setMaximumFractionDigits: 2];
       str = [fmt stringFromNumber: num];


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to