aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/errors.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/errors.t b/t/errors.t
index b229a4b..11a7658 100644
--- a/t/errors.t
+++ b/t/errors.t
@@ -4,13 +4,17 @@ use strict;
use warnings;
use utf8;
-use Test::More tests => 4;
+use Test::More tests => 5;
use List::Breakdown 'breakdown';
our $VERSION = '0.13';
my @t = 1 .. 3;
+
+is( eval { breakdown [ a => 'a' ], @t } || undef,
+ undef, 'error_wrongref_spec' );
+
is( eval { breakdown { a => undef }, @t } || undef,
undef, 'error_notref_undef' );
is( eval { breakdown { a => 'a' }, @t } || undef, undef, 'error_notref_def' );