diff options
Diffstat (limited to 't/op/sub.t')
-rw-r--r-- | t/op/sub.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/op/sub.t b/t/op/sub.t new file mode 100644 index 0000000000..b76d34cb72 --- /dev/null +++ b/t/op/sub.t @@ -0,0 +1,19 @@ +#!./perl + +BEGIN { + chdir 't' if -d 't'; + @INC = '../lib'; + require Config; import Config; +} + +use Test::More 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'); + |