Subject: | Test::TypeTiny should_pass fails but check works |
Date: | Tue, 13 Nov 2018 19:39:40 +0000 |
To: | bug-Type-Tiny [...] rt.cpan.org |
From: | Robert Rothenberg <rrwo [...] cpan.org> |
The following test case demonstrates the issue:
use Test::More;
use Test::TypeTiny;
use Types::Const qw/ Const /;
use Const::Fast;
const my $re => qr/foo/;
# This passes, as it should
ok Const->check($re);
# This also passes
ok Const->_strict_check($re);
# This fails
should_pass($re, Const);
done_testing;
This is for Type::Tiny 1.004002