File: dynamic.t

package info (click to toggle)
libref-util-perl 0.204-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 252 kB
  • sloc: perl: 610; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 196 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
use strict;
use warnings;
use Ref::Util;
use Test::More tests => 2;

my $cb = Ref::Util->can('is_arrayref');
ok( $cb->([]), 'is_arrayref with can()' );
ok( !$cb->({}), 'is_arrayref with can()' );