Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Update tests
  • Loading branch information
zachthompson committed Jun 8, 2016
1 parent 91113aa commit 3173b89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/Bin2Unicode.t
Expand Up @@ -14,7 +14,7 @@ zci is_cached => 1;
sub gen_struc_ans {
my ($in, $bin, $str, $asc) = @_;

return "Binary '$bin' converted to " . $asc ? 'ascii' : 'unicode' . " is '$str'",,
return "Binary '$bin' converted to " . ($asc ? 'ascii' : 'unicode') . " is '$str'",,
structured_answer => {
data => {
title => $str,
Expand All @@ -40,7 +40,7 @@ ddg_goodie_test(
'0110100001100101011011000110110001101111 to text',
'0110100001100101011011000110110001101111',
'hello',
1)),
0)),
'0000000111110111 to unicode' => test_zci(gen_struc_ans(
'0000000111110111 to unicode',
'0000000111110111',
Expand All @@ -62,7 +62,7 @@ ddg_goodie_test(
'0100110101110101011000110110100001100001011100110010000001000111011100100110000101100011011010010110000101110011001000000100001101101111011011010111000001100001011100110100110111110000',
'0100110101110101011000110110100001100001011100110010000001000111011100100110000101100011011010010110000101110011001000000100001101101111011011010111000001100001011100110100110111110000',
'Muchas Gracias CompasMð',
1)),
0)),
'00000000' => test_zci(gen_struc_ans(
'00000000',
'00000000',
Expand Down

0 comments on commit 3173b89

Please sign in to comment.