Cross Reference:
xref
: /
illumos-gate
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
t
/
op
/
sub.t
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
sub.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!./perl -w
BEGIN
{
chdir
't'
if
-d
't'
;
@
INC
=
'../lib'
;
require
'./
test.pl
'
;
}
plan
(
tests
=>
4
)
;
sub
empty_sub
{}
is
(
empty_sub
,
undef
,
"Is empty"
)
;
is
(
empty_sub
(
1
,
2
,
3
)
,
undef
,
"Is still empty"
)
;
@
test
=
empty_sub
()
;
is
(
scalar
(@
test
)
,
0
,
'Didnt return anything'
)
;
@
test
=
empty_sub
(
1
,
2
,
3
)
;
is
(
scalar
(@
test
)
,
0
,
'Didnt return anything'
)
;