2014-10-14 11:40:59 -07:00
|
|
|
|
#!/usr/bin/env perl
|
2014-10-10 14:36:02 -07:00
|
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
use warnings;
|
|
|
|
|
use Test::More;
|
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
2014-10-14 11:40:59 -07:00
|
|
|
|
use utf8;
|
|
|
|
|
|
2014-10-10 14:36:02 -07:00
|
|
|
|
zci answer_type => 'hiragana';
|
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
|
[qw(
|
|
|
|
|
DDG::Goodie::Hiragana
|
|
|
|
|
)],
|
|
|
|
|
|
2014-10-14 10:15:10 -07:00
|
|
|
|
"hiragana a" => test_zci('あ', html => "<div class='zci--hiragana text--primary'>あ</div>"),
|
|
|
|
|
"hiragana konnichiwa" => test_zci('こんにちわ', html => "<div class='zci--hiragana text--primary'>こんにちわ</div>"),
|
|
|
|
|
"nihon hiragana" => test_zci('にほん', html => "<div class='zci--hiragana text--primary'>にほん</div>"),
|
|
|
|
|
"hiragana tsukue no ue" => test_zci('つくえ の うえ', html => "<div class='zci--hiragana text--primary'>つくえ の うえ</div>"),
|
2014-11-15 14:12:17 -08:00
|
|
|
|
"Japanese zero" => undef,
|
2014-10-12 14:23:06 -07:00
|
|
|
|
"what is hiragana?" => undef,
|
2014-10-12 14:57:21 -07:00
|
|
|
|
"hiragana" => undef,
|
2014-10-10 14:36:02 -07:00
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
done_testing();
|