File: t70icosing.t

package info (click to toggle)
libimager-perl 1.019%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,824 kB
  • sloc: perl: 32,886; ansic: 28,193; makefile: 52; cpp: 4
file content (13 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!perl -w
use strict;
use Test::More tests => 1;
use Imager;
use Imager::Test qw(test_image);

-d "testout" or mkdir "testout";
# checks that we load the ICO write handler automatically

my $img = test_image();
ok($img->write(file => 'testout/icosing.ico'),
   "write ico with autoload")
  or print "# ",$img->errstr,"\n";