summaryrefslogtreecommitdiffstats
path: root/t/fun
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-21 18:39:46 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-21 18:39:46 -0400
commitdfed2b264de2652cfdeecbaf8cb9b059c77b44cf (patch)
treef6e1afd81c13dafe933e78476388e4092417fab4 /t/fun
parenta1b9ebae67b4064c163e1b2189c4ec76de03565d (diff)
downloadparse-keyword-dfed2b264de2652cfdeecbaf8cb9b059c77b44cf.tar.gz
parse-keyword-dfed2b264de2652cfdeecbaf8cb9b059c77b44cf.zip
fix up deps
Diffstat (limited to 't/fun')
-rw-r--r--t/fun/anon.t2
-rw-r--r--t/fun/basic.t2
-rw-r--r--t/fun/closure-proto.t2
-rw-r--r--t/fun/compile-time.t2
-rw-r--r--t/fun/defaults.t2
-rw-r--r--t/fun/name.t2
-rw-r--r--t/fun/package.t2
-rw-r--r--t/fun/recursion.t2
-rw-r--r--t/fun/slurpy-syntax-errors.t2
-rw-r--r--t/fun/slurpy.t2
-rw-r--r--t/fun/state.t2
11 files changed, 22 insertions, 0 deletions
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;