X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcore_video.t;h=d7cf95545a62ca1bc92409b8d207f85ccf2c6da8;hb=b9125226e1a2240a047fc28b69e8471626d6c147;hp=4f03b98b61faeccd3ea98bd8b3c91a268d2d6452;hpb=128c8327685b245d2688aff94fae9b3fef280473;p=sdlgit%2FSDL_perl.git diff --git a/t/core_video.t b/t/core_video.t index 4f03b98..d7cf955 100644 --- a/t/core_video.t +++ b/t/core_video.t @@ -56,7 +56,8 @@ SDL::Video::update_rect($display, 0, 0, 0, 0); #TODO: Write to surface and check inf pixel in that area got updated. SDL::Video::update_rects($display, SDL::Rect->new(0, 10, 20, 20)); -is( (SDL::Video::flip($display) == 0 || -1), 1, '[flip] returns 0 or -1' ); +my $value = SDL::Video::flip($display); +is( ($value == 0) || ($value == -1), 1, '[flip] returns 0 or -1' ); pass "Are we still alive?";