2012-09-19 21:01:41 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
use Convert::Braille;
|
2013-03-31 21:43:58 -07:00
|
|
|
use utf8;
|
2012-09-19 21:01:41 -07:00
|
|
|
|
|
|
|
zci is_cached => 1;
|
|
|
|
zci answer_type => 'braille';
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
|
|
|
DDG::Goodie::Braille
|
|
|
|
)],
|
2013-03-31 21:43:58 -07:00
|
|
|
'hello in braille' => test_zci("⠓⠑⠇⠇⠕ (Braille)"),
|
2013-05-14 10:36:05 -07:00
|
|
|
'⠓⠑⠇⠇⠕' => test_zci("hello (Braille)"),
|
2013-05-14 12:14:56 -07:00
|
|
|
'translate to braille translate to braille' => test_zci("⠞⠗⠁⠝⠎⠇⠁⠞⠑⠀⠞⠕⠀⠃⠗⠁⠊⠇⠇⠑ (Braille)"),
|
|
|
|
'⠞⠗⠁⠝⠎⠇⠁⠞⠑⠀⠞⠕⠀⠃⠗⠁⠊⠇⠇⠑' => test_zci("translate to braille (Braille)"),
|
|
|
|
'braille asdf k' => test_zci("⠁⠎⠙⠋⠀⠅ (Braille)"),
|
|
|
|
'⠁⠎⠙⠋⠀⠅' => test_zci("asdf k (Braille)")
|
2012-09-19 21:01:41 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|