Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added test for empty DateTime constructor
  • Loading branch information
dagurval committed May 20, 2013
1 parent fab6f8e commit b9c3771
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S32-temporal/DateTime.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 200;
plan 201;

my $orwell = DateTime.new(year => 1984);

Expand Down Expand Up @@ -68,6 +68,9 @@ isa_ok time, Int, 'time returns an Int';
# Input validation
# --------------------------------------------------------------------

#?rakudo todo ""
dies_ok { DateTime.new }, 'Must provide arguments to DateTime';

# L<S32::Temporal/C<DateTime>/outside of the ranges specified>

lives_ok { dt month => 1 }, 'DateTime accepts January';
Expand Down

0 comments on commit b9c3771

Please sign in to comment.