Skip to content

Commit

Permalink
[Test] avoid "Code object coerced to string"-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 21, 2014
1 parent 6797fde commit 4699b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test.pm
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ sub throws_like($code, $ex_type, $reason?, *%matcher) is export {
for %matcher.kv -> $k, $v {
my $got = $_."$k"();
my $ok = $got ~~ $v,;
ok $ok, ".$k matches {$v.defined ?? $v !! $v.gist}";
ok $ok, ".$k matches $v.gist()";
unless $ok {
diag "Expected: $v";
diag "Got: $got";
Expand Down

0 comments on commit 4699b5a

Please sign in to comment.