zeroclickinfo-goodies/t/Kana.t

54 lines
1.3 KiB
Perl
Raw Normal View History

2015-02-12 07:09:33 -08:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
use utf8;
zci answer_type => 'kana';
zci is_cached => 1;
ddg_goodie_test(
[
'DDG::Goodie::Kana'
],
'ahiru in hiragana' => test_zci('1',
2015-02-12 18:36:57 -08:00
structured_answer => {
input => ['ahiru'],
operation => 'in hiragana from',
result => 'あひる'
}
2015-02-12 07:09:33 -08:00
),
'ahiru in katakana' => test_zci('1',
2015-02-12 18:36:57 -08:00
structured_answer => {
input => ['ahiru'],
operation => 'in katakana from',
result => "アヒル"
}
2015-02-12 07:09:33 -08:00
),
'アヒル to romaji' => test_zci('1',
2015-02-12 18:36:57 -08:00
structured_answer => {
input => ['アヒル'],
operation => 'in romaji from',
result => 'ahiru'
}
),
2015-02-12 07:09:33 -08:00
'あひる in romaji' => test_zci('1',
2015-02-12 18:36:57 -08:00
structured_answer => {
input => ['あひる'],
operation => 'in romaji from',
result => 'ahiru'
}
),
2015-02-12 07:09:33 -08:00
'「みかん,りんご」 to romaji' => test_zci('1',
2015-02-12 18:36:57 -08:00
structured_answer => {
input => ['「みかん,りんご」'],
operation => 'in romaji from',
result => '\'mikan,ringo\''
}
),
2015-02-12 07:09:33 -08:00
);
done_testing;