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