Fix boolean false problem in the image extension tests.

This commit is contained in:
Colin Kuskie 2010-09-22 12:04:44 -07:00
parent 636bde7131
commit a4a1da4b19

View file

@ -105,7 +105,8 @@ cmp_bag($imageStore->getFiles(1), $expectedFiles, '... even when the allFiles sw
####################################################
foreach my $extTest ( @{ $extensionTests } ) {
is( $imageStore->isImage($extTest->{filename}), $extTest->{isImage}, $extTest->{comment} );
my $isImage = $imageStore->isImage($extTest->{filename}) ? 1 : 0;
is( $isImage, $extTest->{isImage}, $extTest->{comment} );
}
####################################################