@@ -31,22 +31,20 @@ OFDate *d1, *d2; TEST(@"+[dateWithTimeIntervalSince1970:]", (d1 = [OFDate dateWithTimeIntervalSince1970: 0])) - TEST(@"+[dateWithTimeIntervalSince1970:microseconds:]", - (d2 = [d1 dateByAddingTimeInterval: 3600 * 25 + 5 - withMicroseconds: 1])) + TEST(@"-[dateByADdingTimeInterval:]", + (d2 = [d1 dateByAddingTimeInterval: 3600 * 25 + 5.000001])) TEST(@"-[description]", [[d1 description] isEqual: @"1970-01-01T00:00:00Z"] && [[d2 description] isEqual: @"1970-01-02T01:00:05Z"]) TEST(@"-[isEqual:]", [d1 isEqual: [OFDate dateWithTimeIntervalSince1970: 0]] && - ![d1 isEqual: [OFDate dateWithTimeIntervalSince1970: 0 - microseconds: 1]]) + ![d1 isEqual: [OFDate dateWithTimeIntervalSince1970: 0.0000001]]) TEST(@"-[compare:]", [d1 compare: d2] == OF_ORDERED_ASCENDING) TEST(@"-[second]", [d1 second] == 0 && [d2 second] == 5)