From a4a1da4b19e3292b7bba7f6e8f5e6f09726e652b Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 22 Sep 2010 12:04:44 -0700 Subject: [PATCH] Fix boolean false problem in the image extension tests. --- t/Storage/Image.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/Storage/Image.t b/t/Storage/Image.t index 337bb80cf..45092db79 100644 --- a/t/Storage/Image.t +++ b/t/Storage/Image.t @@ -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} ); } ####################################################