Skip to content

Commit

Permalink
Made the new unittests consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
bachmeil committed Nov 30, 2015
1 parent c536217 commit 0f23dba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions std/datetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -6197,9 +6197,9 @@ public:
///
unittest
{
auto st1 = SysTime(DateTime(2015, 12, 31, 23, 59, 59));
auto st2 = st1 + 1.seconds;
assert(st2 == SysTime(DateTime(2016, 1, 1, 0, 0, 0)));
auto oldYear = SysTime(DateTime(2015, 12, 31, 23, 59, 59));
auto newYear = oldYear + 1.seconds;
assert(newYear == SysTime(DateTime(2016, 1, 1, 0, 0, 0)));
}

unittest
Expand Down Expand Up @@ -16182,8 +16182,8 @@ public:
///
unittest
{
DateTime oldYear = DateTime(2015, 12, 31, 23, 59, 59);
DateTime newYear = oldYear + 1.seconds;
auto oldYear = DateTime(2015, 12, 31, 23, 59, 59);
auto newYear = oldYear + 1.seconds;
assert(newYear == DateTime(2016, 1, 1, 0, 0, 0));
}

Expand Down

0 comments on commit 0f23dba

Please sign in to comment.