File: 01-basic.t

package info (click to toggle)
libpackage-pkg-perl 0.0020-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 108 kB
  • sloc: perl: 319; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 238 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
#!/usr/bin/env perl

use strict;
use warnings;

use Test::Most;
plan 'no_plan';

package Apple;

use Package::Pkg;

pkg->export( xyzzy => sub { 'apple' } );

package Xyzzy;

Apple->import;

package main;

is( Xyzzy->xyzzy, 'apple' );

1;