The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use Test::Exception;

my $pkg;
BEGIN {
    $pkg = 'Catmandu::Iterator';
    use_ok $pkg;
}
require_ok $pkg;

my $g = sub { sub {} };

my $i = $pkg->new($g);
ok $i->does('Catmandu::Iterable');

done_testing 3;