From c30042a504953e7cbeea20b39f8b9340ced9ed4c Mon Sep 17 00:00:00 2001 From: Zach Thompson Date: Thu, 21 Jan 2016 10:22:36 -0700 Subject: [PATCH] Use the same bignum/int pragmas in the tests for Test::Deep --- t/Base.t | 4 ++++ t/Conversions.t | 4 ++++ t/PrimeFactors.t | 4 ++++ t/SumOfNaturalNumbers.t | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/t/Base.t b/t/Base.t index 882f461f3..7125972db 100644 --- a/t/Base.t +++ b/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 diff --git a/t/Conversions.t b/t/Conversions.t index c95a35e96..d1b09cf50 100755 --- a/t/Conversions.t +++ b/t/Conversions.t @@ -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'], diff --git a/t/PrimeFactors.t b/t/PrimeFactors.t index ab4acd826..a4dfe2ce0 100644 --- a/t/PrimeFactors.t +++ b/t/PrimeFactors.t @@ -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) = @_; diff --git a/t/SumOfNaturalNumbers.t b/t/SumOfNaturalNumbers.t index 29db10daf..b54340114 100644 --- a/t/SumOfNaturalNumbers.t +++ b/t/SumOfNaturalNumbers.t @@ -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(