2013-05-28 12:28:47 -07:00
|
|
|
#! /usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'rand';
|
|
|
|
zci is_cached => 0;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[
|
|
|
|
'DDG::Goodie::RandomName'
|
|
|
|
],
|
2013-05-30 14:14:48 -07:00
|
|
|
'random Name' => test_zci (qr/\w\w \(random\)/),
|
|
|
|
'random name' => test_zci (qr/\w\w \(random\)/),
|
2013-06-30 12:56:32 -07:00
|
|
|
'random person' =>
|
|
|
|
test_zci (qr/Name: [\w\s]+\nGender: (?:Male|Female)\nDate of birth: \d{4}\-\d{2}\-\d{2}\nAge: \d+/,
|
|
|
|
heading => 'Random Person'),
|
2013-05-28 12:28:47 -07:00
|
|
|
);
|
|
|
|
|
2013-05-30 14:14:48 -07:00
|
|
|
done_testing;
|