File: elsewhere.t

package info (click to toggle)
libfunction-parameters-perl 2.002005-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 624 kB
  • sloc: perl: 3,945; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use warnings;
use Test::More;

{
    package Wrapper;
    use Function::Parameters ();
    sub shazam { Function::Parameters->import(@_); }
}

BEGIN { Wrapper::shazam; }

ok fun ($x) { $x }->(1);

{
    package Cu::Ba;
    BEGIN { Wrapper::shazam { gorn => 'function_lax' }; }

    gorn wooden ($gorn) { !$gorn }
}

ok Cu::Ba::wooden;

done_testing;