Skip to content

Commit

Permalink
failing test (RT#90096)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Nov 6, 2013
1 parent c39c1b9 commit 1e794e1
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions t/rt90096.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
=pod
=encoding utf-8
=head1 PURPOSE
Make sure that L<Type::Params> localizes C<< $_ >>.
=head1 SEE ALSO
L<https://rt.cpan.org/Ticket/Display.html?id=90096>.
=head1 AUTHOR
Samuel Kaufman E<lt>skaufman@cpan.orgE<gt>.
=head1 COPYRIGHT AND LICENCE
This software is copyright (c) 2013 by Samuel Kaufman.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut

use strict;
use warnings FATAL=> 'all';

use Test::More tests => 3;
use Type::Params qw[ compile ];
use Types::Standard qw[ slurpy Dict Bool ];

my $check = compile slurpy Dict [ with_connection => Bool ];

for (qw[ 1 2 3 ]) { # $_ is read-only in here
ok $check->( with_connection => 1 );
}

0 comments on commit 1e794e1

Please sign in to comment.