mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Tests/base/NSLocale/general.m,
* Tests/base/NSTimeZone/use.m: Mark more tests that depend on locale setting as hopes. * Tests/base/GSXML/basic.m: Set the timezone of the GSXMLRPC to get the same date string in the output. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36371 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
79b4e9f8d4
commit
d1d4e0e106
4 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
2013-03-16 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Tests/base/NSLocale/general.m,
|
||||
* Tests/base/NSTimeZone/use.m: Mark more tests that depend on
|
||||
locale setting as hopes.
|
||||
* Tests/base/GSXML/basic.m: Set the timezone of the GSXMLRPC to
|
||||
get the same date string in the output.
|
||||
|
||||
2012-03-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* NSTimeZones/NSTimeZones.tar:
|
||||
|
|
|
@ -136,6 +136,7 @@ int main()
|
|||
PASS([str isEqual: @"method"] && [iparams isEqual: oparams],
|
||||
"Can parse a method call with binary data");
|
||||
|
||||
[rpc setTimeZone: [NSTimeZone systemTimeZone]];
|
||||
[iparams addObject: [NSDate date]];
|
||||
dat = [rpc buildMethod: @"method" params: iparams];
|
||||
PASS(dat != nil, "Can build a method call with a date");
|
||||
|
|
|
@ -67,6 +67,7 @@ int main(void)
|
|||
"NSLocaleCurrencyCode key returns 'ESP'");
|
||||
PASS_EQUAL([locale objectForKey: NSLocaleCollatorIdentifier],
|
||||
@"es_ES@currency=ESP", "NSLocaleCollatorIdentifier for Spain");
|
||||
testHopeful = YES;
|
||||
u = 8216;
|
||||
PASS_EQUAL([locale objectForKey: NSLocaleQuotationBeginDelimiterKey],
|
||||
[NSString stringWithCharacters: &u length: 1],
|
||||
|
@ -83,6 +84,7 @@ int main(void)
|
|||
PASS_EQUAL([locale objectForKey: NSLocaleAlternateQuotationEndDelimiterKey],
|
||||
[NSString stringWithCharacters: &u length: 1],
|
||||
"NSLocaleAlternateQuotationEndDelimiterKey key returns 'xx8'");
|
||||
testHopeful = NO;
|
||||
RELEASE(locale);
|
||||
|
||||
locale = [[NSLocale alloc] initWithLocaleIdentifier: @"en_US"];
|
||||
|
|
|
@ -56,6 +56,7 @@ int main()
|
|||
|
||||
current = [NSTimeZone timeZoneWithName: @"America/Sao_Paulo"];
|
||||
locale = [[NSLocale alloc] initWithLocaleIdentifier: @"en_GB"];
|
||||
testHopeful = YES;
|
||||
PASS_EQUAL(
|
||||
[current localizedName: NSTimeZoneNameStyleStandard locale: locale],
|
||||
@"Brasilia Time",
|
||||
|
@ -63,7 +64,6 @@ int main()
|
|||
|
||||
/* The next few depend on ICU issues
|
||||
*/
|
||||
testHopeful = YES;
|
||||
PASS_EQUAL(
|
||||
[current localizedName: NSTimeZoneNameStyleShortStandard locale: locale],
|
||||
@"GMT-03:00",
|
||||
|
|
Loading…
Reference in a new issue