File: relative-fail.t

package info (click to toggle)
librelative-perl 0.04-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 124 kB
  • ctags: 17
  • sloc: perl: 243; makefile: 38
file content (14 lines) | stat: -rw-r--r-- 325 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!perl -Tw
package BigApp::Report;
use strict;
use Test::More;
use lib "t";

plan tests => 2;

use_ok( "relative" );

# check that loading a non-existing module results in failure
my $module = "NoSuchModule";
eval { import relative $module };
like( $@, "/Can't locate BigApp/Report/$module.pm in \@INC/", "checking error" );