Skip to content

Commit

Permalink
Fix warning about calling lives{} in void context
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Dec 7, 2022
1 parent 41270bf commit a9c40ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/unit/Newtype.t
Expand Up @@ -76,7 +76,7 @@ describe "method `_exporter_fail`" => sub {
};

subtest 'is_TestHash( $thing ) seems to work' => sub {
lives { $func{assert_TestHash}->( $func{TestHash}->( {} ) ) };
lives { $func{assert_TestHash}->( $func{TestHash}->( {} ) ) } or fail;
my $e = dies { $func{assert_TestHash}->( {} ) };
like $e, qr/did not pass type constraint/;
};
Expand Down

0 comments on commit a9c40ea

Please sign in to comment.