2012-04-15 12:41:23 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
use utf8;
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
2012-05-23 19:05:08 -07:00
|
|
|
zci answer_type => 'convert_to_ascii';
|
2012-04-15 12:41:23 -07:00
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
|
|
|
DDG::Goodie::Unidecode
|
|
|
|
)],
|
|
|
|
'unidecode møæp' => test_zci('moaep'),
|
|
|
|
"unidecode \x{5317}\x{4EB0}" => test_zci('Bei Jing'),
|
2014-02-10 13:24:52 -08:00
|
|
|
'unidecode å亰' => test_zci('aaodeg'),
|
2012-04-15 12:41:23 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|
|
|
|
|