2015-04-12 06:20:06 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 2048;
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw( DDG::Goodie::Game2048 )],
|
|
|
|
|
|
|
|
'play 2048' => test_zci(
|
|
|
|
'Play 2048',
|
|
|
|
structured_answer => {
|
|
|
|
|
|
|
|
data => '-ANY-',
|
|
|
|
|
|
|
|
# data => [{
|
|
|
|
# dimension => 4,
|
|
|
|
# inputNum => 2048
|
|
|
|
# }],
|
|
|
|
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"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
),
|
|
|
|
'play 256 7' => test_zci(
|
|
|
|
'Play 256',
|
|
|
|
structured_answer => {
|
|
|
|
|
|
|
|
data => '-ANY-',
|
|
|
|
|
|
|
|
# data => [{
|
|
|
|
# dimension => 7,
|
|
|
|
# inputNum => 256
|
|
|
|
# }],
|
|
|
|
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"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
),
|
|
|
|
'2048 online' => undef
|
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|