1# -*- mode: perl; -*- 2 3use strict; 4use warnings; 5 6use Test::More tests => 4; 7 8use Math::BigInt::Calc base_len => 1, use_int => 0; 9 10my ($BASE_LEN, $BASE, $AND_BITS, $XOR_BITS, $OR_BITS, 11 $BASE_LEN_SMALL, $MAX_VAL, 12 $MAX_BITS, $MAX_EXP_F, $MAX_EXP_I, $USE_INT) 13 = Math::BigInt::Calc->_base_len(); 14 15note(<<"EOF"); 16 17BASE_LEN = $BASE_LEN 18BASE = $BASE 19MAX_VAL = $MAX_VAL 20AND_BITS = $AND_BITS 21XOR_BITS = $XOR_BITS 22OR_BITS = $OR_BITS 23MAX_EXP_F = $MAX_EXP_F 24MAX_EXP_I = $MAX_EXP_I 25USE_INT = $USE_INT 26EOF 27 28cmp_ok($BASE_LEN, "==", 1, '$BASE_LEN is 1'); 29cmp_ok($USE_INT, "==", 0, '$USE_INT is 0'); 30 31my $LIB = 'Math::BigInt::Calc'; 32 33my $x = $LIB -> _new("31415926535897932384626433832"); 34my $str = $LIB -> _str($x); 35is($str, "31415926535897932384626433832", 36 "string representation of $LIB object"); 37 38is("[ @$x ]", "[ 2 3 8 3 3 4 6 2 6 4 8 3 2 3 9 7 9 8 5 3 5 6 2 9 5 1 4 1 3 ]", 39 "internal representation of $LIB object"); 40