diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-07-02 21:38:19 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-07-02 21:38:19 +0000 |
commit | c3029c660c41826954b460e82523f3ba1f91d479 (patch) | |
tree | f7c4c0a4ca6c4a70c3d7391f7dc1f7b770ffbc41 /t/test.pl | |
parent | 44dd01776cb5c3f704edbcd874beced643715d5a (diff) | |
download | perl-c3029c660c41826954b460e82523f3ba1f91d479.tar.gz |
Minor test adjustments :
- test name correction in op/concat.t by Yitzchak Scott-Thoennes
- prototypes added to some public functions in t/test.pl,
as suggested by Enache Adrian
p4raw-id: //depot/perl@19941
Diffstat (limited to 't/test.pl')
-rw-r--r-- | t/test.pl | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -81,7 +81,7 @@ sub _where { } # DON'T use this for matches. Use like() instead. -sub ok { +sub ok ($@) { my ($pass, $name, @mess) = @_; _ok($pass, _where(), $name, @mess); } @@ -131,7 +131,7 @@ sub display { return @result; } -sub is { +sub is ($$@) { my ($got, $expected, $name, @mess) = @_; my $pass; @@ -150,7 +150,7 @@ sub is { _ok($pass, _where(), $name, @mess); } -sub isnt { +sub isnt ($$@) { my ($got, $isnt, $name, @mess) = @_; my $pass; @@ -169,7 +169,7 @@ sub isnt { _ok($pass, _where(), $name, @mess); } -sub cmp_ok { +sub cmp_ok ($$$@) { my($got, $type, $expected, $name, @mess) = @_; my $pass; @@ -202,7 +202,7 @@ sub cmp_ok { # otherwise $range is a fractional error. # Here $range must be numeric, >= 0 # Non numeric ranges might be a useful future extension. (eg %) -sub within { +sub within ($$$@) { my ($got, $expected, $range, $name, @mess) = @_; my $pass; if (!defined $got or !defined $expected or !defined $range) { @@ -234,7 +234,7 @@ sub within { } # Note: this isn't quite as fancy as Test::More::like(). -sub like { +sub like ($$@) { my ($got, $expected, $name, @mess) = @_; my $pass; if (ref $expected eq 'Regexp') { @@ -320,7 +320,7 @@ sub eq_hash { !$fail; } -sub require_ok { +sub require_ok ($) { my ($require) = @_; eval <<REQUIRE_OK; require $require; @@ -328,7 +328,7 @@ REQUIRE_OK _ok(!$@, _where(), "require $require"); } -sub use_ok { +sub use_ok ($) { my ($use) = @_; eval <<USE_OK; use $use; |