Permalink
Browse files

init returns a bitmask, not the flag

  • Loading branch information...
1 parent 686ccba commit 160a29f0f5776b812206a7f705ca386db9ba4b82 @FROGGS FROGGS committed Jun 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 t/image.t
View
@@ -176,23 +176,23 @@ SKIP:
SKIP:
{
skip( 'JPEG support not compiled', 1 ) unless SDL::Config->has('jpeg');
- is( SDL::Image::init(IMG_INIT_JPG), IMG_INIT_JPG,
+ cmp_ok( SDL::Image::init(IMG_INIT_JPG), '&', IMG_INIT_JPG,
'[init] Inited JPEG'
);
}
SKIP:
{
skip( 'TIFF support not compiled', 1 ) unless SDL::Config->has('tiff');
- is( SDL::Image::init(IMG_INIT_TIF), IMG_INIT_TIF,
+ cmp_ok( SDL::Image::init(IMG_INIT_TIF), '&', IMG_INIT_TIF,
'[init] Inited TIFF'
);
}
SKIP:
{
skip( 'PNG support not compiled', 1 ) unless SDL::Config->has('png');
- is( SDL::Image::init(IMG_INIT_PNG), IMG_INIT_PNG, '[init] Inited PNG' );
+ cmp_ok( SDL::Image::init(IMG_INIT_PNG), '&', IMG_INIT_PNG, '[init] Inited PNG' );
}
can_ok(

0 comments on commit 160a29f

Please sign in to comment.