61 lines
1.2 KiB
Perl
61 lines
1.2 KiB
Perl
#!/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
|
|
# }],
|
|
id => "game2048",
|
|
name => 2048,
|
|
templates => {
|
|
group => "text",
|
|
item => 0,
|
|
options => {
|
|
content => "DDH.game2048.content"
|
|
},
|
|
}
|
|
}
|
|
),
|
|
'play 256 7' => test_zci(
|
|
'Play 256',
|
|
structured_answer => {
|
|
|
|
data => '-ANY-',
|
|
|
|
# data => [{
|
|
# dimension => 7,
|
|
# inputNum => 256
|
|
# }],
|
|
id => "game2048",
|
|
name => 2048,
|
|
templates => {
|
|
group => "text",
|
|
item => 0,
|
|
options => {
|
|
content => "DDH.game2048.content"
|
|
},
|
|
}
|
|
}
|
|
),
|
|
'2048 online' => undef
|
|
);
|
|
|
|
done_testing;
|