Revert change #30530, following Jan's advice
[p5sagit/p5-mst-13.2.git] / lib / bignum / t / in_effect.t
CommitLineData
4440d13a 1#!/usr/bin/perl -w
2
3###############################################################################
4# Test in_effect()
5
6use Test::More;
7use strict;
8
9BEGIN
10 {
11 $| = 1;
12 chdir 't' if -d 't';
13 unshift @INC, '../lib';
14 plan tests => 9;
15 }
16
17use bigint;
18use bignum;
19use bigrat;
20
21can_ok ('bigint', qw/in_effect/);
22can_ok ('bignum', qw/in_effect/);
23can_ok ('bigrat', qw/in_effect/);
24
25SKIP: {
26 skip ('Need at least Perl v5.9.4', 3) unless $] > 5.009004;
27
28 is (bigint::in_effect(), 1, 'bigint in effect');
29 is (bignum::in_effect(), 1, 'bignum in effect');
30 is (bigrat::in_effect(), 1, 'bigrat in effect');
31 }
32
33{
34 no bigint;
35 no bignum;
36 no bigrat;
37
38 is (bigint::in_effect(), undef, 'bigint not in effect');
39 is (bignum::in_effect(), undef, 'bignum not in effect');
40 is (bigrat::in_effect(), undef, 'bigrat not in effect');
41}
42