Merge bignum 0.10, from Tels.
[p5sagit/p5-mst-13.2.git] / lib / bignum / t / trace.t
CommitLineData
126f3c5f 1#!/usr/bin/perl -w
2
3###############################################################################
4
5use Test;
6use strict;
7
8BEGIN
9 {
10 $| = 1;
11 chdir 't' if -d 't';
12 unshift @INC, '../lib';
13 plan tests => 1;
14 }
15
16BEGIN
17 {
18 print "# "; # for testsuite
19 }
20use bignum qw/ trace /;
21
22###############################################################################
23# general tests
24
25my $x = 5;
26print "\n";
27ok (ref($x),'Math::BigInt::Trace'); # :constant via trace
28
29###############################################################################
30###############################################################################
31# Perl 5.005 does not like ok ($x,undef)
32
33sub ok_undef
34 {
35 my $x = shift;
36
37 ok (1,1) and return if !defined $x;
38 ok ($x,'undef');
39 }