Skip to content

Commit

Permalink
fix datetime test
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Stepanov committed Oct 6, 2014
1 parent bae162b commit 8b32555
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions std/datetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -33027,10 +33027,11 @@ version(unittest)
: TimeZone.getTimeZone("America/Denver");
immutable ot = otherTZ.utcToTZ(0);

auto diffs = [0, lt, ot];
auto diffAA = [0 : Rebindable!(immutable TimeZone)(UTC()),
lt : Rebindable!(immutable TimeZone)(LocalTime()),
ot : Rebindable!(immutable TimeZone)(otherTZ)];
auto diffs = [0L, lt, ot];
auto diffAA = [0L : Rebindable!(immutable TimeZone)(UTC())];
diffAA[lt] = Rebindable!(immutable TimeZone)(LocalTime());
diffAA[ot] = Rebindable!(immutable TimeZone)(otherTZ);

sort(diffs);
testTZs = [diffAA[diffs[0]], diffAA[diffs[1]], diffAA[diffs[2]]];

Expand Down

0 comments on commit 8b32555

Please sign in to comment.