Skip to content

Commit

Permalink
[coverage] Cover Instant.Date
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Oct 5, 2016
1 parent e27975f commit bd1b067
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S32-temporal/DateTime-Instant-Duration.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 59;
plan 61;

=begin pod
Expand Down Expand Up @@ -150,6 +150,9 @@ for 1, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1449755609 {
is-deeply $d - 1.5, Duration.new(3), '1.5';
is-deeply $d - 100.5, Duration.new(-96), '1.5';
}

is-deeply now.Date, Date.today, 'Instant.Date';
throws-like { Instant.Date }, Exception, 'Instant:U.Date throws';
}

# vim: ft=perl6

0 comments on commit bd1b067

Please sign in to comment.