Fixed test for PNG generation.
This commit is contained in:
parent
c9ebeaf37e
commit
185cbdedec
|
@ -4,6 +4,7 @@ use File::Temp qw(tempfile);
|
||||||
use Time::Local;
|
use Time::Local;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
||||||
|
$VERSION = do { my @r=(q$Revision: 1.3 $=~/\d+/g);sprintf "%d."."%02d"x$#r,@r};
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %opts) = @_;
|
my ($class, %opts) = @_;
|
||||||
|
|
|
@ -35,7 +35,7 @@ $ts->add(1.002E9, 3);
|
||||||
$test = 3;
|
$test = 3;
|
||||||
my $g = $ts->plot();
|
my $g = $ts->plot();
|
||||||
print STDERR "length \$g = ", length($g), "\n";
|
print STDERR "length \$g = ", length($g), "\n";
|
||||||
if (length($g) > 0 && substr($g, 0, 3) eq "PNG") {
|
if (length($g) > 0 && substr($g, 0, 4) eq "\211PNG") {
|
||||||
print "ok $test\n";
|
print "ok $test\n";
|
||||||
} else {
|
} else {
|
||||||
print "not ok $test\n";
|
print "not ok $test\n";
|
||||||
|
|
Loading…
Reference in New Issue