2 # variant on the code that produces 18561
3 # the old _color() code could return floating colors in some cases
4 # but in most cases the caller couldn't handle it
6 use Test::More tests => 1;
9 use Imager::Color::Float; # prevent the actual 18561 crash
14 $i->line(x1 => 0, y1 => 0, x2 => 99, y2=>99, color => [ 0, 0, 0 ]);
16 ok(!$@, "shouldn't crash")