Merge pull request #2092 from duckduckgo/zt/test-deep
Use the same bignum/int pragmas in the tests for Test::Deep
This commit is contained in:
commit
37c651f65d
4
t/Base.t
4
t/Base.t
@ -6,7 +6,11 @@ use Test::More;
|
|||||||
use DDG::Test::Goodie;
|
use DDG::Test::Goodie;
|
||||||
|
|
||||||
zci answer_type => 'conversion';
|
zci answer_type => 'conversion';
|
||||||
|
|
||||||
|
# is_cached is promoted in the IA
|
||||||
|
use bigint;
|
||||||
zci is_cached => 1;
|
zci is_cached => 1;
|
||||||
|
no bigint;
|
||||||
|
|
||||||
ddg_goodie_test([qw(
|
ddg_goodie_test([qw(
|
||||||
DDG::Goodie::Base
|
DDG::Goodie::Base
|
||||||
|
@ -8,7 +8,11 @@ use DDG::Test::Goodie;
|
|||||||
use utf8;
|
use utf8;
|
||||||
|
|
||||||
zci answer_type => 'conversions';
|
zci answer_type => 'conversions';
|
||||||
|
|
||||||
|
# Match the promotion to BigInt in the IA
|
||||||
|
use bignum;
|
||||||
zci is_cached => 1;
|
zci is_cached => 1;
|
||||||
|
no bignum;
|
||||||
|
|
||||||
ddg_goodie_test(
|
ddg_goodie_test(
|
||||||
['DDG::Goodie::Conversions'],
|
['DDG::Goodie::Conversions'],
|
||||||
|
@ -8,7 +8,11 @@ use Test::More;
|
|||||||
use DDG::Test::Goodie;
|
use DDG::Test::Goodie;
|
||||||
|
|
||||||
zci answer_type => "prime_factors";
|
zci answer_type => "prime_factors";
|
||||||
|
|
||||||
|
# Match the promotion in the IA
|
||||||
|
use bignum;
|
||||||
zci is_cached => 1;
|
zci is_cached => 1;
|
||||||
|
no bignum;
|
||||||
|
|
||||||
sub build_answer {
|
sub build_answer {
|
||||||
my ($subtitle, $title) = @_;
|
my ($subtitle, $title) = @_;
|
||||||
|
@ -5,7 +5,11 @@ use warnings;
|
|||||||
use Test::More;
|
use Test::More;
|
||||||
use DDG::Test::Goodie;
|
use DDG::Test::Goodie;
|
||||||
|
|
||||||
|
# match promotion in IA
|
||||||
|
use bignum;
|
||||||
zci is_cached => 1;
|
zci is_cached => 1;
|
||||||
|
no bignum;
|
||||||
|
|
||||||
zci answer_type => 'sum';
|
zci answer_type => 'sum';
|
||||||
|
|
||||||
ddg_goodie_test(
|
ddg_goodie_test(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user