zeroclickinfo-goodies/t/Braille.t

26 lines
754 B
Perl
Raw Normal View History

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;
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
)],
'hello in braille' => test_zci("⠓⠑⠇⠇⠕ (Braille)"),
2013-05-14 10:36:05 -07:00
'⠓⠑⠇⠇⠕' => test_zci("hello (Braille)"),
'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;