2012-12-02 04:28:49 -08:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'ascii';
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
|
|
|
DDG::Goodie::HexToASCII
|
|
|
|
)],
|
2012-12-03 02:37:54 -08:00
|
|
|
'ascii 0x74657374' => test_zci('test (ASCII)'),
|
|
|
|
'ascii 0x5468697320697320612074657374' => test_zci('This is a test (ASCII)'),
|
2012-12-02 04:28:49 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|