2013-11-16 12:19:15 -08:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'sudoku';
|
|
|
|
zci is_cached => 0;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[
|
|
|
|
'DDG::Goodie::Sudoku'
|
|
|
|
],
|
|
|
|
"sudoku" => test_zci(
|
|
|
|
qr/^[0-9_].*[0-9_]$/s,
|
|
|
|
html => qr/.*\<table.*\<\/table\>.*/s,
|
|
|
|
),
|
2013-11-20 13:42:51 -08:00
|
|
|
"play sudoku" => test_zci(
|
|
|
|
qr/^[0-9_].*[0-9_]$/s,
|
|
|
|
html => qr/.*\<table.*\<\/table\>.*/s,
|
|
|
|
),
|
|
|
|
"easy sudoku" => test_zci(
|
|
|
|
qr/^[0-9_].*[0-9_]$/s,
|
|
|
|
html => qr/.*\<table.*\<\/table\>.*/s,
|
|
|
|
),
|
|
|
|
"sudoku hard" => test_zci(
|
|
|
|
qr/^[0-9_].*[0-9_]$/s,
|
|
|
|
html => qr/.*\<table.*\<\/table\>.*/s,
|
|
|
|
),
|
|
|
|
"generate sudoku" => test_zci(
|
|
|
|
qr/^[0-9_].*[0-9_]$/s,
|
|
|
|
html => qr/.*\<table.*\<\/table\>.*/s,
|
|
|
|
),
|
|
|
|
"sudoku party" => undef,
|
|
|
|
"sudoku toys" => undef,
|
2014-02-10 13:24:52 -08:00
|
|
|
'sudoku easy' => test_zci(
|
|
|
|
qr/[0-9_].*[0-9_]$/s,
|
|
|
|
html => qr/.*\<table.*\<\/table\>.*/s,
|
|
|
|
),
|
2013-11-16 12:19:15 -08:00
|
|
|
);
|
|
|
|
|
2014-02-05 19:58:32 -08:00
|
|
|
done_testing;
|