Skip to content

Commit

Permalink
Make test for Instant + Instant less picky
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 4, 2019
1 parent 48223c2 commit 73eb90d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions S02-types/instants-and-durations.t
Expand Up @@ -30,9 +30,7 @@ throws-like { Instant.new(123) }, X::Cannot::New, 'Instant.new is illegal';
my $d = $t1 - $t0;

ok $t0 < $t1, 'later Instants are greater';
throws-like { $t0 + $t1 },
X::Multi::Ambiguous,
'Instant + Instant is illegal';
dies-ok { $t0 + $t1 }, 'Instant + Instant is illegal';
isa-ok $d, Duration, 'Instant - Instant ~~ Duration';
ok $d ~~ Real, 'Durations are Real';
isa-ok $d + $t0, Instant, 'Instant + Duration ~~ Instant';
Expand Down

0 comments on commit 73eb90d

Please sign in to comment.