xref: /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/t/sub_ali.t (revision 0:68f95e015346)
1#!/usr/bin/perl -w
2
3# test that the new alias names work
4
5use Test::More;
6use strict;
7
8BEGIN
9  {
10  $| = 1;
11  # to locate the testing files
12  my $location = $0; $location =~ s/sub_ali.t//i;
13  if ($ENV{PERL_CORE})
14    {
15    # testing with the core distribution
16    @INC = qw(../t/lib);
17    }
18  unshift @INC, qw(../lib);
19  if (-d 't')
20    {
21    chdir 't';
22    require File::Spec;
23    unshift @INC, File::Spec->catdir(File::Spec->updir, $location);
24    }
25  else
26    {
27    unshift @INC, $location;
28    }
29  print "# INC = @INC\n";
30
31  plan tests => 6;
32  }
33
34use Math::BigInt::Subclass;
35
36use vars qw/$CL $x/;
37$CL = 'Math::BigInt::Subclass';
38
39require 'alias.inc';
40
41