Using Rect as Blessed but backward compatible constructor.
[sdlgit/SDL_perl.git] / t / rectpm.t
index 58a183e..8e4dcc0 100644 (file)
@@ -55,10 +55,10 @@ can_ok ('SDL::Rect', qw/
        left
         /);
 
-my $rect = SDL::Rect->new();
+my $rect = SDL::Rect->new(0,0,0,0);
 
 # creating with defaults
-is (ref($rect),'SDL::Rect','new went ok');
+isa_ok ($rect,'SDL::Rect');
 is ($rect->x(), 0, 'x is 0');
 is ($rect->y(), 0, 'y is 0');
 is ($rect->top(), 0, 'top is 0');