Debian Codegraph @

t/03fail.t

raw symbols SCIP
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use Test::More tests => 3;
7 use Test::Fatal;
8
9 use Devel::Refcount qw( refcount );
10
11 ok( exception { refcount() },
12 'refcount with no args fails' );
13
14 ok( exception { refcount(undef) },
15 'refcount with undef arg fails' );
16
17 ok( exception { refcount("hello") },
18 'refcount with non-ref arg fails' );