File: tr18561.t

package info (click to toggle)
libimager-perl 0.75-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,532 kB
  • ctags: 3,278
  • sloc: ansic: 24,109; perl: 21,732; makefile: 13
file content (21 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!perl -w
# regression test for RT issue 18561
# 
use strict;
use Test::More tests => 1;
eval {
  use Imager;
  
  my $i = Imager->new(
          xsize => 50,
	  ysize => 50,
  );
  
  $i->setpixel(
	x => 10,
	y => 10,
	color => [0, 0, 0],
  );
};
ok(!$@, "shouldn't crash")
  or print "# $@\n";