summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Math-BigInt/t/use.t
blob: d04a11afc14939ca2a3c445baee92b9a51f14136 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

# use Module(); doesn't call import() - thanx for cpan testers David. M. Town
# and Andreas Marcel Riechert for spotting it. It is fixed by the same code
# that fixes require Math::BigInt, but we make a test to be sure it really
# works.

use strict;
use warnings;

use Test::More tests => 1;

my $x;

use Math::BigInt ();
$x = Math::BigInt->new(1);
++$x;

is($x, 2, '$x = Math::BigInt->new(1); ++$x;');