Negative values (which Coverity didn't complain about) could also
cause problems.
+ - the Imager::Color set_internal() interal method no longer
+ calls the over-complicated ICL_set_internal() (which is retained
+ only for the old API.) Coverity complained that this leaked, but
+ this could only occur with an invalid (NULL pointer) color object.
+
Imager 1.008 - 31 Dec 2018
============
# Change 1..1 below to 1..last_test_to_print .
# (It may become useful if the test is moved to ./t subdirectory.)
-use Test::More tests => 73;
+use Test::More;
use Imager;
use Imager::Test qw(is_fcolor3 is_fcolor4 is_color4);
my $fail;
for (@foo) {
Imager::Color::set_internal($_, 128, 128, 128, 128) == $_ or ++$fail;
- Imager::Color::set_internal($_, 128, 128, 128, 128) == $_ or ++$fail;
- test_col($_, 128, 128, 128, 128) or ++$fail;
+ Imager::Color::set_internal($_, 128, 129, 130, 131) == $_ or ++$fail;
+ test_col($_, 128, 129, 130, 131) or ++$fail;
}
ok(!$fail, 'consitency check');
is($v,0,'black value');
}
+done_testing();
+
sub test_col {
my ($c, $r, $g, $b, $a) = @_;
unless ($c) {