23 lines
488 B
Perl
23 lines
488 B
Perl
|
#!/usr/bin/env perl
|
||
|
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
use Test::More;
|
||
|
use DDG::Test::Goodie;
|
||
|
|
||
|
zci answer_type => 'conversion';
|
||
|
zci is_cached => 1;
|
||
|
|
||
|
ddg_goodie_test(
|
||
|
[qw(
|
||
|
DDG::Goodie::Base
|
||
|
)],
|
||
|
'255 in hex' => test_zci('255 in base 16 is FF'),
|
||
|
'255 in base 16' => test_zci('255 in base 16 is FF'),
|
||
|
'42 in binary' => test_zci('42 in base 2 is 101010'),
|
||
|
'42 in base 2' => test_zci('42 in base 2 is 101010'),
|
||
|
);
|
||
|
|
||
|
done_testing;
|
||
|
|