Use the same bignum/int pragmas in the tests for Test::Deep

master
Zach Thompson 2016-01-21 10:22:36 -07:00
parent c413b48923
commit c30042a504
4 changed files with 16 additions and 0 deletions

View File

@ -6,7 +6,11 @@ use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'conversion';
# is_cached is promoted in the IA
use bigint;
zci is_cached => 1;
no bigint;
ddg_goodie_test([qw(
DDG::Goodie::Base

View File

@ -8,7 +8,11 @@ use DDG::Test::Goodie;
use utf8;
zci answer_type => 'conversions';
# Match the promotion to BigInt in the IA
use bignum;
zci is_cached => 1;
no bignum;
ddg_goodie_test(
['DDG::Goodie::Conversions'],

View File

@ -8,7 +8,11 @@ use Test::More;
use DDG::Test::Goodie;
zci answer_type => "prime_factors";
# Match the promotion in the IA
use bignum;
zci is_cached => 1;
no bignum;
sub build_answer {
my ($subtitle, $title) = @_;

View File

@ -5,7 +5,11 @@ use warnings;
use Test::More;
use DDG::Test::Goodie;
# match promotion in IA
use bignum;
zci is_cached => 1;
no bignum;
zci answer_type => 'sum';
ddg_goodie_test(