2012-05-28 13:02:54 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use utf8;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'chars';
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
|
|
|
DDG::Goodie::Morse
|
|
|
|
)],
|
2012-06-02 08:00:02 -07:00
|
|
|
'morse ... --- ...' => test_zci('Morse code: SOS'),
|
2012-05-28 13:02:54 -07:00
|
|
|
'morse hello, duck' =>
|
2012-06-02 08:00:02 -07:00
|
|
|
test_zci('Morse code: .... . .-.. .-.. --- --..-- -.. ..- -.-. -.-'),
|
2012-05-28 13:02:54 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|