Differences From Artifact [b44b2f039d]:
- File
tests/OFDateTests.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 2379) [annotate] [blame] [check-ins using] [more...]
To Artifact [2f507797b6]:
- File
tests/OFDateTests.m
— part of check-in
[f1765412c7]
at
2016-02-22 15:25:43
on branch trunk
— OFDate: Do not use lrint() for microseconds
It's better to make sure we never round up, as it's better to be a
little bit behind in time than ahead.This has the nice side effect of fixing the test on the 3DS, as lrint()
is behaving differently there. (user: js, size: 2379) [annotate] [blame] [check-ins using]
︙ | |||
30 31 32 33 34 35 36 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - + - + | OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFDate *d1, *d2; TEST(@"+[dateWithTimeIntervalSince1970:]", (d1 = [OFDate dateWithTimeIntervalSince1970: 0])) TEST(@"-[dateByAddingTimeInterval:]", |
︙ |