From: Kartik Thakore Date: Fri, 30 Oct 2009 14:23:01 +0000 (-0400) Subject: Added test for time X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8cce3f72c4f3e87cdd163a5c14366462c5584ddd;p=sdlgit%2FSDL_perl.git Added test for time --- diff --git a/t/core_time.t b/t/core_time.t new file mode 100644 index 0000000..613b259 --- /dev/null +++ b/t/core_time.t @@ -0,0 +1,34 @@ +#!/usr/bin/perl -w +use strict; +use SDL; +use Test::More; +use Test::Trap; + +plan ( tests => 4 ); +my @done =qw/ none /; + +SKIP: +{ + skip 'Not implemented', 2; +use_ok( 'SDL::Time' ); +can_ok ('SDL::Time', @done); +} + +my @left = qw/ + add_timer + delay + get_ticks + remove_timer +/; + +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';