The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

use strict;
use Test::More 'tests' => 3;
# Test.
my $obj = MARC::Convert::Wikidata::Object->new;
is_deeply($obj->cycles, [], 'Get cyclces ([] - default).');
# Test.
my $cycle = MARC::Convert::Wikidata::Object::Series->new(
'name' => 'Harry Potter',
);
$obj = MARC::Convert::Wikidata::Object->new(
'cycles' => [$cycle],
);
is($obj->cycles->[0]->name, 'Harry Potter', 'Get cycle name (Harry Potter).');