Merge pull request #2092 from duckduckgo/zt/test-deep
Use the same bignum/int pragmas in the tests for Test::Deepmaster
commit
37c651f65d
4
t/Base.t
4
t/Base.t
|
@ -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
|
||||
|
|
|
@ -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'],
|
||||
|
|
|
@ -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) = @_;
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue