X-Git-Url: http://git.shiar.net/perl/list-index.git/blobdiff_plain/e2a186365224032ff37caac824d50c9b43130952..ab016fa05c0e918fd295f1d6c0cfad285b292b66:/t/20-links.t diff --git a/t/20-links.t b/t/20-links.t index f22937a..8fd54d0 100644 --- a/t/20-links.t +++ b/t/20-links.t @@ -8,6 +8,13 @@ use Data::Dump 'pp'; BEGIN { use_ok('List::Index' => 'rangematch'); } +eval { Test::More->VERSION(0.93) } or eval q{ + diag "Install Test::More v0.93 to run subtests\n"; + sub subtest { + SKIP: { skip 'subtest', 1; } + } +}; + my @RANGETESTS = ( ['single prefix', [ q => 'q'], @@ -83,7 +90,7 @@ my @RANGETESTS = ( for (@RANGETESTS) { my ($name, @tests) = @$_; - subtest $name => sub { + subtest($name => sub { plan tests => scalar @tests; for (@tests) { my ($in, $out) = @$_; @@ -94,6 +101,6 @@ for (@RANGETESTS) { ); diag($@) if $@; } - }; + }); }