File: 02-dollar0.t

package info (click to toggle)
libfind-lib-perl 1.04-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180 kB
  • sloc: perl: 124; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 289 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use Test::More tests => 3;

$0 = "Renammed";
use Find::Lib '../mylib';
use MyLib a => 1, b => 42;

ok $MyLib::imported{'a'};
is $MyLib::imported{'b'}, 42;

## would that BEGIN moved up before the 'use'
## it would break Find::Lib, see the other test
BEGIN { $0 = "Renammed"; }