From dfed2b264de2652cfdeecbaf8cb9b059c77b44cf Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 21 Jul 2013 18:39:46 -0400 Subject: fix up deps --- t/fun/anon.t | 2 ++ t/fun/basic.t | 2 ++ t/fun/closure-proto.t | 2 ++ t/fun/compile-time.t | 2 ++ t/fun/defaults.t | 2 ++ t/fun/name.t | 2 ++ t/fun/package.t | 2 ++ t/fun/recursion.t | 2 ++ t/fun/slurpy-syntax-errors.t | 2 ++ t/fun/slurpy.t | 2 ++ t/fun/state.t | 2 ++ t/try/basic.t | 2 ++ t/try/context.t | 2 ++ t/try/finally.t | 2 ++ t/try/given_when.t | 2 ++ t/try/syntax.t | 2 ++ t/try/when.t | 2 ++ 17 files changed, 34 insertions(+) (limited to 't') diff --git a/t/fun/anon.t b/t/fun/anon.t index 88b6991..2d273f4 100644 --- a/t/fun/anon.t +++ b/t/fun/anon.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Fun; my $fun = fun ($x, $y) { $x * $y }; diff --git a/t/fun/basic.t b/t/fun/basic.t index 53a8476..06a724f 100644 --- a/t/fun/basic.t +++ b/t/fun/basic.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Fun; fun mul ($x, $y) { diff --git a/t/fun/closure-proto.t b/t/fun/closure-proto.t index bc9ede5..83ff3ad 100644 --- a/t/fun/closure-proto.t +++ b/t/fun/closure-proto.t @@ -5,6 +5,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Fun; { diff --git a/t/fun/compile-time.t b/t/fun/compile-time.t index cc72455..2fab3ed 100644 --- a/t/fun/compile-time.t +++ b/t/fun/compile-time.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Fun; is(foo(), "FOO"); diff --git a/t/fun/defaults.t b/t/fun/defaults.t index 49bd5aa..923e545 100644 --- a/t/fun/defaults.t +++ b/t/fun/defaults.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Fun; fun foo ($x, $y = 5) { diff --git a/t/fun/name.t b/t/fun/name.t index 3294791..d5952d4 100644 --- a/t/fun/name.t +++ b/t/fun/name.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Carp; my $file = __FILE__; diff --git a/t/fun/package.t b/t/fun/package.t index 52a2266..9c49066 100644 --- a/t/fun/package.t +++ b/t/fun/package.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Fun; fun Foo::foo ($x, $y) { diff --git a/t/fun/recursion.t b/t/fun/recursion.t index 75663ec..72bd23b 100644 --- a/t/fun/recursion.t +++ b/t/fun/recursion.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + BEGIN { if (!eval { require 5.016; 1 }) { plan skip_all => "This test requires 5.16"; diff --git a/t/fun/slurpy-syntax-errors.t b/t/fun/slurpy-syntax-errors.t index 90337a5..2a3aa14 100644 --- a/t/fun/slurpy-syntax-errors.t +++ b/t/fun/slurpy-syntax-errors.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Fun; { diff --git a/t/fun/slurpy.t b/t/fun/slurpy.t index 42a7f10..62a2d39 100644 --- a/t/fun/slurpy.t +++ b/t/fun/slurpy.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use Fun; fun test_array ( $foo, @bar ) { diff --git a/t/fun/state.t b/t/fun/state.t index 7b8f8fb..68f2c17 100644 --- a/t/fun/state.t +++ b/t/fun/state.t @@ -5,6 +5,8 @@ use warnings; use Test::More; use lib 't/fun/lib'; +use Test::Requires 'Sub::Name'; + use 5.10.0; use Fun; diff --git a/t/try/basic.t b/t/try/basic.t index 9d71138..cc837e3 100644 --- a/t/try/basic.t +++ b/t/try/basic.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/try/lib'; +use Test::Requires 'Try::Tiny'; + use Try; sub _eval { diff --git a/t/try/context.t b/t/try/context.t index d5ebfe6..76ac585 100644 --- a/t/try/context.t +++ b/t/try/context.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/try/lib'; +use Test::Requires 'Try::Tiny'; + use Try; my $ctx_index = { diff --git a/t/try/finally.t b/t/try/finally.t index e4ae792..15bdfb3 100644 --- a/t/try/finally.t +++ b/t/try/finally.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/try/lib'; +use Test::Requires 'Try::Tiny'; + use Try; try { diff --git a/t/try/given_when.t b/t/try/given_when.t index 4cf8460..c3af21e 100644 --- a/t/try/given_when.t +++ b/t/try/given_when.t @@ -5,6 +5,8 @@ use Test::More; use lib 't/try/lib'; use 5.014; +use Test::Requires 'Try::Tiny'; + no if $] >= 5.018, warnings => 'experimental::smartmatch'; use Try; diff --git a/t/try/syntax.t b/t/try/syntax.t index 8e8a6e0..6e4641c 100644 --- a/t/try/syntax.t +++ b/t/try/syntax.t @@ -4,6 +4,8 @@ use warnings; use Test::More; use lib 't/try/lib'; +use Test::Requires 'Try::Tiny'; + use Try; my $err; diff --git a/t/try/when.t b/t/try/when.t index 6a0c075..96754aa 100644 --- a/t/try/when.t +++ b/t/try/when.t @@ -5,6 +5,8 @@ use Test::More; use lib 't/try/lib'; use 5.014; +use Test::Requires 'Try::Tiny'; + no if $] >= 5.018, warnings => 'experimental::smartmatch'; use Try; -- cgit v1.2.3-54-g00ecf