summaryrefslogtreecommitdiffstats
path: root/t
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
parenta1b9ebae67b4064c163e1b2189c4ec76de03565d (diff)
downloadparse-keyword-dfed2b264de2652cfdeecbaf8cb9b059c77b44cf.tar.gz
parse-keyword-dfed2b264de2652cfdeecbaf8cb9b059c77b44cf.zip
fix up deps
Diffstat (limited to 't')
-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
-rw-r--r--t/try/basic.t2
-rw-r--r--t/try/context.t2
-rw-r--r--t/try/finally.t2
-rw-r--r--t/try/given_when.t2
-rw-r--r--t/try/syntax.t2
-rw-r--r--t/try/when.t2
17 files changed, 34 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;
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;