File: 20-new.t

package info (click to toggle)
libarray-iterator-perl 0.136-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 248 kB
  • sloc: perl: 740; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!perl -w

use strict;

# use lib 'lib';
use Test::Most tests => 3;

BEGIN { use_ok('Array::Iterator') }

isa_ok(Array::Iterator->new(1..5), 'Array::Iterator', 'Creating Array::Iterator object with ARRAY');
isa_ok(Array::Iterator->new({ __array__ => [1..2] }), 'Array::Iterator', 'Creating Array::Iterator object with HASH');
# ok(!defined(Array::Iterator::new()));