From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

use strict;
use Test::More 'tests' => 3;
# Test.
my $obj = Data::Image->new(
);
is($obj->height, undef, 'Get height (undef = default).');
# Test.
$obj = Data::Image->new(
'height' => 2730,
);
is($obj->height, 2730, 'Get height (2730).');