summaryrefslogtreecommitdiff
path: root/t/op/method.t
diff options
context:
space:
mode:
authorRobin Houston <robin@cpan.org>2001-05-11 13:02:22 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-11 12:52:49 +0000
commit145eb477362c0def60b3ef8ad6349c490a44735a (patch)
tree1b077b939fca9fa56bfb2bb225b8e17bc1772aa8 /t/op/method.t
parent85b4d566cfc4cf2b1ecaeebe47e23f42cb8382a1 (diff)
downloadperl-145eb477362c0def60b3ef8ad6349c490a44735a.tar.gz
$foo->bar(0)
Message-ID: <20010511120222.A11529@penderel> p4raw-id: //depot/perl@10080
Diffstat (limited to 't/op/method.t')
-rwxr-xr-xt/op/method.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/op/method.t b/t/op/method.t
index 1f5cbb64dc..ceb39be7da 100755
--- a/t/op/method.t
+++ b/t/op/method.t
@@ -9,7 +9,7 @@ BEGIN {
@INC = '../lib';
}
-print "1..54\n";
+print "1..56\n";
@A::ISA = 'B';
@B::ISA = 'C';
@@ -46,6 +46,9 @@ test($obj->$mname("a","b","c"), "method,a,b,c");
test((method $obj ("a","b","c")), "method,a,b,c");
test((method $obj "a","b","c"), "method,a,b,c");
+test($obj->method(0), "method,0");
+test($obj->method(1), "method,1");
+
test($obj->method(), "method");
test($obj->$mname(), "method");
test((method $obj ()), "method");