source: trunk/essentials/dev-lang/perl/t/op/sub.t

Last change on this file was 3181, checked in by bird, 18 years ago

perl 5.8.8

File size: 353 bytes
Line 
1#!./perl -w
2
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6 require './test.pl';
7}
8
9plan( tests => 4 );
10
11sub empty_sub {}
12
13is(empty_sub,undef,"Is empty");
14is(empty_sub(1,2,3),undef,"Is still empty");
15@test = empty_sub();
16is(scalar(@test), 0, 'Didnt return anything');
17@test = empty_sub(1,2,3);
18is(scalar(@test), 0, 'Didnt return anything');
19
Note: See TracBrowser for help on using the repository browser.