2015-04-12 06:20:06 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
2016-05-16 06:07:57 -07:00
|
|
|
use Test::Deep;
|
2015-04-12 06:20:06 -07:00
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 2048;
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw( DDG::Goodie::Game2048 )],
|
|
|
|
|
2017-06-05 13:49:57 -07:00
|
|
|
'2048' => test_zci(
|
|
|
|
'',
|
|
|
|
structured_answer => {
|
|
|
|
data => ignore(),
|
|
|
|
templates => {
|
|
|
|
group => "text",
|
|
|
|
item => 0,
|
|
|
|
options => {
|
|
|
|
content => "DDH.game2048.content"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
),
|
2015-04-12 06:20:06 -07:00
|
|
|
'play 2048' => test_zci(
|
2016-02-23 13:02:54 -08:00
|
|
|
'',
|
2015-04-12 06:20:06 -07:00
|
|
|
structured_answer => {
|
2016-06-14 12:50:58 -07:00
|
|
|
data => ignore(),
|
2015-04-12 06:20:06 -07:00
|
|
|
templates => {
|
2015-04-19 09:25:34 -07:00
|
|
|
group => "text",
|
2015-04-12 06:20:06 -07:00
|
|
|
item => 0,
|
|
|
|
options => {
|
|
|
|
content => "DDH.game2048.content"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
),
|
2017-06-05 13:49:57 -07:00
|
|
|
'what is 2048?' => undef,
|
|
|
|
'how to play 2048' => undef,
|
2017-09-05 11:00:32 -07:00
|
|
|
'204823 34232' => undef,
|
|
|
|
'123:play 2048:12398' => undef,
|
|
|
|
'2400:cb00:2048:1::6817:f2fe' => undef,
|
|
|
|
'2048:6093:99ca:bc7:0:0:0:0' => undef
|
2017-06-05 13:49:57 -07:00
|
|
|
|
2015-04-12 06:20:06 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|