steal more tests from other modules
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / at_underscore.t
CommitLineData
98e6239b 1#!perl
2use strict;
3use warnings FATAL => 'all';
4
5use Test::More;
6
7{
8 package Foo;
9 use Function::Parameters qw(:strict);
10
11 fun foo { return @_ }
12 method bar { return @_ }
13}
14
15is_deeply [Foo::foo()], [];
16is_deeply [Foo::foo(23, 42)], [23, 42];
17is_deeply [Foo->bar()], [];
18is_deeply [Foo->bar(23, 42)], [23, 42];
19
20done_testing;