basic test for import_into
[p5sagit/Function-Parameters.git] / t / elsewhere.t
CommitLineData
d71da6a4 1use strict;
2use warnings;
3use Test::More;
4
5use Function::Parameters ();
6
7BEGIN { Function::Parameters::import_into __PACKAGE__; }
8
9ok fun ($x) { $x }->(1);
10
11BEGIN { Function::Parameters::import_into 'Cu::Ba', 'gorn'; }
12
13{
14 package Cu::Ba;
15
16 gorn wooden ($gorn) { !$gorn }
17}
18
19ok Cu::Ba::wooden;
20
21done_testing;