File: list.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 (10 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
use strict;
use warnings;
use Test::More tests => 2;
use Ref::Util qw<is_arrayref is_hashref>;

# Call multiple routines in a single list expression:
my @got = ( is_arrayref([]), is_hashref({}) );

ok( $got[0], 'got arrayref in list context' );
ok( $got[1], 'got hashref in list context' );