24 lines
638 B
Perl
24 lines
638 B
Perl
#!/usr/bin/env perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
use Test::More;
|
|
use DDG::Test::Goodie;
|
|
|
|
zci answer_type => "prime_factors";
|
|
zci is_cached => 1;
|
|
|
|
ddg_goodie_test(
|
|
[qw(
|
|
DDG::Goodie::PrimeFactors
|
|
)],
|
|
'72 prime factors' => test_zci('The prime factors of 72 are 2, 2, 2, 3, 3.',
|
|
html => 'The prime factors of 72 are 2, 2, 2, 3, 3.'),
|
|
'prime factors of 111' => test_zci('The prime factors of 111 are 3, 37.',
|
|
html => 'The prime factors of 111 are 3, 37.'),
|
|
'prime factors of 30' => test_zci('The prime factors of 30 are 2, 3, 5.',
|
|
html => 'The prime factors of 30 are 2, 3, 5.'),
|
|
);
|
|
|
|
done_testing;
|