From: Kartik Thakore Date: Wed, 28 Oct 2009 13:04:09 +0000 (-0400) Subject: Added test for SDL::WindowManagement X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=97d9726eee31422d0ba37fa7497a8b9311b201f6;p=sdlgit%2FSDL_perl.git Added test for SDL::WindowManagement --- diff --git a/t/core_wm.t b/t/core_wm.t new file mode 100644 index 0000000..8f85c03 --- /dev/null +++ b/t/core_wm.t @@ -0,0 +1,35 @@ +#!/usr/bin/perl -w +use strict; +use SDL; +use Test::More; + +plan ( tests => 3 ); + +use_ok( 'SDL' ); + +my @done =qw/ none /; + +#can_ok ('SDL', @done); + + +my @left = qw/ +get_wminfo +set_caption +get_caption +set_icon +iconify_window +toggle_fullscreen +grab_input +/; + +my $why = '[Percentage Completion] '.int( 100 * $#done / ($#done + $#left) ) ."\% implementation. $#done / ".($#done+$#left); + +TODO: +{ + local $TODO = $why; + pass "\nThe following functions:\n".join ",", @left; +} + if( $done[0] eq 'none'){ diag '0% done 0/'.$#left } else { diag $why} + + +pass 'Are we still alive? Checking for segfaults';