File: upgrade.t

package info (click to toggle)
libmath-bigint-perl 1.9993-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,064 kB
  • ctags: 405
  • sloc: perl: 9,770; pascal: 6,115; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w

use strict;
use Test::More tests => 2128
    + 2;			# our own tests

use Math::BigInt upgrade => 'Math::BigFloat';
use Math::BigFloat;

use vars qw ($scale $class $try $x $y $f @args $ans $ans1 $ans1_str $setup
             $ECL $CL);
$class = "Math::BigInt";
$CL = "Math::BigInt::Calc";
$ECL = "Math::BigFloat";

is (Math::BigInt->upgrade(),'Math::BigFloat');
is (Math::BigInt->downgrade()||'','');

require 't/upgrade.inc';	# all tests here for sharing