Added more test
[sdlgit/SDL_perl.git] / exp / SDL / Rect / t / 001_load.t
CommitLineData
d0eab7ef 1# -*- perl -*-
2
3# t/001_load.t - check module loading and create testing directory
275f555f 4no AutoLoader;
d0eab7ef 5
ba1747b1 6use Test::More tests => 6;
d0eab7ef 7
8BEGIN { use_ok( 'SDL::Rect' ); }
9
7c86a28a 10my $object = SDL::Rect->new();
d0eab7ef 11isa_ok ($object, 'SDL::Rect');
12
ba1747b1 13$object->SetRect(0,1,0,2);
14is($object->RectX, 0 , "Rect X works: x=".$object->RectX );
15is($object->RectY, 1, "Rect X works: x=".$object->RectY );
16is($object->RectW, 0, "Rect X works: x=".$object->RectW );
17is($object->RectH, 2, "Rect X works: x=".$object->RectH );
d0eab7ef 18
ba1747b1 19