xref: /openbsd-src/gnu/usr.bin/perl/cpan/Math-BigInt/t/with_sub.t (revision eac174f2741a08d8deb8aae59a7f778ef9b5d770)
1# -*- mode: perl; -*-
2
3# Test use Math::BigFloat with => 'Math::BigInt::SomeSubclass';
4
5use strict;
6use warnings;
7
8use Test::More tests => 3070            # tests in require'd file
9                         + 1;           # tests in this file
10
11use Math::BigFloat with => 'Math::BigInt::Subclass',
12                   lib  => 'Calc';
13
14our ($CLASS, $LIB);
15$CLASS = "Math::BigFloat";
16$LIB   = "Math::BigInt::Calc";          # backend
17
18# the "with" argument should be ignored
19is(Math::BigFloat->config("with"), 'Math::BigInt::Calc',
20   qq|Math::BigFloat->config("with")|);
21
22require './t/bigfltpm.inc';     # all tests here for sharing
23