Added test for time
Kartik Thakore [Fri, 30 Oct 2009 14:23:01 +0000 (10:23 -0400)]
t/core_time.t [new file with mode: 0644]

diff --git a/t/core_time.t b/t/core_time.t
new file mode 100644 (file)
index 0000000..613b259
--- /dev/null
@@ -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';