Skip to content

Commit

Permalink
[S32-temporal/DateTime.t] Avoid some named params magic.
Browse files Browse the repository at this point in the history
The test was failing on some implementations due to that, and we should
be testing DateTime's reactions, not multiple dispatching.
  • Loading branch information
Tadeusz Sośnierz committed Sep 18, 2011
1 parent d9c9935 commit 6edbf45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S32-temporal/DateTime.t
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ dies_ok { dt minute => -1 }, 'DateTime rejects minute -1';
lives_ok { dt minute => 59 }, 'DateTime accepts minute 59';
lives_ok { dtc minute => 59 }, 'DateTime accepts minute 59 (clone)';
lives_ok { ds '1999-01-01T00:59:22' }, 'DateTime accepts minute 59 (ISO)';
lives_ok { dt date => Date.new(1999, 1, 1), minute => 59 }, 'DateTime accepts minute 59 (with Date)';
lives_ok { DateTime.new: date => Date.new(1999, 1, 1), minute => 59 }, 'DateTime accepts minute 59 (with Date)';
dies_ok { dt minute => 60 }, 'DateTime rejects minute 60';
dies_ok { dtc minute => 60 }, 'DateTime rejects minute 60 (clone)';
dies_ok { ds '1999-01-01T00:60:22' }, 'DateTime rejects minute 60 (ISO)';
Expand Down

0 comments on commit 6edbf45

Please sign in to comment.