import all tests from Fun
[p5sagit/Function-Parameters.git] / t / foreign / Fun / package.t
CommitLineData
98478aff 1#!perl
2use strict;
3use warnings FATAL => 'all';
4use Test::More;
5
6use Function::Parameters;
7
8fun Foo::foo ($x, $y) {
9 $x + $y;
10}
11
12ok(!main->can('foo'));
13ok(Foo->can('foo'));
14is(Foo::foo(1, 2), 3);
15
16done_testing;