Merge pull request #2092 from duckduckgo/zt/test-deep

Use the same bignum/int pragmas in the tests for Test::Deep
master
Zaahir Moolla 2016-01-30 12:05:46 -05:00
commit 37c651f65d
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(