aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-04 10:33:36 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-04 10:33:36 +1300
commit7e33c613fcef7cdfe44b93bb7f6da2206f30d7ca (patch)
tree81caf9717513dc1666f29bb1dc9eb23000e963a4 /t
parentAdd some error tests (diff)
downloadList-Breakdown-7e33c613fcef7cdfe44b93bb7f6da2206f30d7ca.tar.gz (sig)
List-Breakdown-7e33c613fcef7cdfe44b93bb7f6da2206f30d7ca.zip
Rename module to List::Breakdownv0.06
Not close to any other module on CPAN from what I can tell. Also bump version number.
Diffstat (limited to 't')
-rw-r--r--t/errors.t12
-rw-r--r--t/words.t6
2 files changed, 9 insertions, 9 deletions
diff --git a/t/errors.t b/t/errors.t
index 842c344..809b0b3 100644
--- a/t/errors.t
+++ b/t/errors.t
@@ -6,12 +6,12 @@ use utf8;
use Test::More tests => 4;
-use List::Filters 'filter';
+use List::Breakdown 'breakdown';
-our $VERSION = 0.05;
+our $VERSION = 0.06;
my @t = 1 .. 3;
-is( eval { filter { a => undef }, @t } || undef, undef, 'error_notref_undef' );
-is( eval { filter { a => 'a' }, @t } || undef, undef, 'error_notref_def' );
-is( eval { filter { a => [] }, @t } || undef, undef, 'error_badref_array' );
-is( eval { filter { a => \{} }, @t } || undef, undef, 'error_badref_double' );
+is( eval { breakdown { a => undef }, @t } || undef, undef, 'error_notref_undef' );
+is( eval { breakdown { a => 'a' }, @t } || undef, undef, 'error_notref_def' );
+is( eval { breakdown { a => [] }, @t } || undef, undef, 'error_badref_array' );
+is( eval { breakdown { a => \{} }, @t } || undef, undef, 'error_badref_double' );
diff --git a/t/words.t b/t/words.t
index a2ca767..609e2ff 100644
--- a/t/words.t
+++ b/t/words.t
@@ -6,9 +6,9 @@ use utf8;
use Test::More tests => 1;
-use List::Filters 'filter';
+use List::Breakdown 'breakdown';
-our $VERSION = 0.05;
+our $VERSION = 0.06;
my @words = qw(foo bar baz quux wibble florb);
my $filters = {
@@ -22,7 +22,7 @@ my $filters = {
},
has_ba => qr/ba/msx,
};
-my %filtered = filter $filters, @words;
+my %filtered = breakdown $filters, @words;
my %expected = (
all => [qw(foo bar baz quux wibble florb)],