zeroclickinfo-goodies/t/Ascii.t

24 lines
662 B
Perl

#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'ascii_conversion';
zci is_cached => 1;
ddg_goodie_test(
[qw(
DDG::Goodie::Ascii
)],
'01101010 to ascii' => test_zci('01101010 in binary is "j" in ASCII'),
'00111001 to ascii' => test_zci('00111001 in binary is "9" in ASCII'),
'01110100011010000110100101110011 in ascii' => test_zci('01110100011010000110100101110011 in binary is "this" in ASCII'),
'01110100011010000110000101110100 to ascii' => test_zci('01110100011010000110000101110100 in binary is "that" in ASCII'),
);
done_testing;