2012-03-20 19:23:09 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
2012-03-20 21:08:12 -07:00
|
|
|
zci answer_type => 'rand';
|
2014-03-08 14:19:06 -08:00
|
|
|
zci is_cached => 0;
|
2012-03-20 19:23:09 -07:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
2014-03-08 14:19:06 -08:00
|
|
|
[qw( DDG::Goodie::ABC )],
|
2014-03-09 09:36:44 -07:00
|
|
|
'choose' => undef,
|
|
|
|
'i choose' => undef,
|
|
|
|
'choose or' => undef,
|
|
|
|
'choose my house or your house' => undef,
|
|
|
|
'choose his or her house' => undef,
|
|
|
|
'choose his or or her house' => undef,
|
|
|
|
'choose from products like turkey or venison' => undef,
|
2014-03-10 20:00:01 -07:00
|
|
|
'choose pick or axe' => test_zci(qr/(pick|axe) \(random\)/),
|
2014-03-08 14:19:06 -08:00
|
|
|
'choose yes or no' => test_zci(qr/(yes|no) \(random\)/),
|
|
|
|
'choose this or that or none' => test_zci(qr/(this|that|none) \(random\)/),
|
2014-03-09 17:12:45 -07:00
|
|
|
'pick this or that or none' => test_zci(qr/(this|that|none) \(random\)/),
|
2014-03-09 17:35:42 -07:00
|
|
|
'select heads or tails' => test_zci(qr/(heads|tails) \(random\)/),
|
2014-03-08 14:19:06 -08:00
|
|
|
'choose heads or tails' => test_zci(qr/(heads|tails) \(random\)/),
|
2012-11-07 09:25:37 -08:00
|
|
|
'choose duckduckgo or google or bing or something' => test_zci("duckduckgo (not random)", answer_type => 'egg'),
|
2014-03-08 14:19:06 -08:00
|
|
|
'choose DuckDuckGo OR Google OR Bing OR SOMETHING' => test_zci("DuckDuckGo (not random)", answer_type => 'egg'),
|
2012-03-20 19:23:09 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|
|
|
|
|