Corrected bad test

This commit is contained in:
Alexandre Wilhelm committed 2013-04-16 02:26:17 +02:00
1 parent f39e224c48
commit 28357bd57f
1 file changed
+5 -1
+5 -1
View File
@@ -165,7 +165,11 @@
- (void)testLocalizedStringFromDate
{
var result = [CPDateFormatter localizedStringFromDate:[[CPDate alloc] initWithString:@"2011-10-05 23:59:59 +1200"] dateStyle:CPDateFormatterMediumStyle timeStyle:CPDateFormatterNoStyle];
[self assert:result equals:@"5 Oct 2011"];
if (![[[CPLocale currentLocale] objectForKey:CPLocaleCountryCode] isEqualToString:@"US"])
[self assert:result equals:@"5 Oct 2011"];
else
[self assert:result equals:@"Oct 5, 2011"];
}
- (void)testInit