mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-22 22:45:52 +00:00
Corrected bad test
This commit is contained in:
1 parent
f39e224c48
commit
28357bd57f
1 file changed
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user