zeroclickinfo-goodies/t/Fibonacci.t

20 lines
605 B
Perl
Raw Normal View History

#!/usr/bin/env perl
2013-01-23 13:53:53 -08:00
use strict;
use warnings;
use Test::More;
2013-01-23 13:53:53 -08:00
use DDG::Test::Goodie;
zci answer_type => 'fibonacci';
zci is_cached => 1;
ddg_goodie_test(
[qw(DDG::Goodie::Fibonacci)],
'fib 7' => test_zci('The 7th fibonacci number is 13 (assuming f(0) = 0).',
html => 'The 7<sup>th</sup> fibonacci number is 13 (assuming f(0) = 0).'),
'fibonacci 33' => test_zci('The 33rd fibonacci number is 3524578 (assuming f(0) = 0).',
html => 'The 33<sup>rd</sup> fibonacci number is 3524578 (assuming f(0) = 0).'),
2013-01-23 13:53:53 -08:00
);
done_testing;