Skip to content

Commit

Permalink
Test case for #31.
Browse files Browse the repository at this point in the history
  • Loading branch information
boredzo committed Mar 26, 2014
1 parent cc18501 commit 6c51f05
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,13 @@ - (void) testUnparsingDateWithinBritishSummerTimeAsUTC {
STAssertEqualObjects(string, expectedString, @"Got wrong string for September date in UTC-as-default (check whether DST is included in TZ offset)");
}

//https://github.com/boredzo/iso-8601-date-formatter/issues/31
- (void) testParsingOctober9th2013 {
NSDate *date = [_iso8601DateFormatter dateFromString:@"2013-10-09T13:00:00Z"];
//#31 is a crash, so we shouldn't even get here.
STAssertNotNil(date, @"1 PM UTC on October 9th, 2013 should not be nil");
}

- (void) testStrictModeRejectsSlashyDates {
_iso8601DateFormatter.parsesStrictly = true;

Expand Down

0 comments on commit 6c51f05

Please sign in to comment.