File: core_mouse.t

package info (click to toggle)
libsdl-perl 2.548-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,972 kB
  • sloc: perl: 13,985; ansic: 583; makefile: 35
file content (38 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/perl -w
use strict;
use warnings;
use SDL;
use Test::More;
use SDL::Mouse;
use SDL::Cursor;
use SDL::Surface;

my @done = qw/
	/;

my @left = qw/
	warp_mouse
	set_cursor
	get_cursor
	show_cursor
	/;
can_ok( 'SDL::Mouse',  @left );          #change to @done later ... after tests
can_ok( 'SDL::Cursor', qw/new DESTROY/ );

my $why =
	  '[Percentage Completion] '
	. int( 100 * ( $#done + 1 ) / ( $#done + $#left + 2 ) )
	. "\% implementation. "
	. ( $#done + 1 ) . " / "
	. ( $#done + $#left + 2 );

TODO:
{
	local $TODO = $why;
	fail "Not Implmented $_" foreach (@left)

}
print "$why\n";

done_testing;
sleep(2);