From 73eb90d847b396fb091b3794bc2f9bb7b5361970 Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Fri, 4 Jan 2019 14:27:14 +0100 Subject: [PATCH] Make test for Instant + Instant less picky In light of https://github.com/rakudo/rakudo/commit/e48712a30a --- S02-types/instants-and-durations.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/S02-types/instants-and-durations.t b/S02-types/instants-and-durations.t index ab83bc1b14..ae48c31c9e 100644 --- a/S02-types/instants-and-durations.t +++ b/S02-types/instants-and-durations.t @@ -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';