| 1 | #!perl -w | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use blib; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use Imager; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Test::More tests => 4; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | BEGIN { use_ok('Imager::Filter::DynTest') } | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | my $im = Imager->new; | |||||||||
| 10 | SKIP: | ||||||||||
| 11 | { | ||||||||||
| 12 | 1 | ▶ | ok($im->read(file => '../testimg/penguin-base.ppm'), "load source image") | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | or skip("couldn't load work image", 2); | ||||||||||
| 14 | 1 | ▶ | ok($im->filter(type=>'lin_stretch', a => 50, b => 200), | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | "try filter") | ||||||||||
| 16 | or print "# ", $im->errstr, "\n"; | ||||||||||
| 17 | 1 | ok($im->write(file => '../testout/t00dyntest.ppm'), | |||||||||
| 18 | "save result"); | ||||||||||
| 19 | } | ||||||||||