From 3173b89b02948e30909ead9441b52dc0dc643071 Mon Sep 17 00:00:00 2001 From: Zach Thompson Date: Wed, 8 Jun 2016 15:27:54 -0600 Subject: [PATCH] Update tests --- t/Bin2Unicode.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/Bin2Unicode.t b/t/Bin2Unicode.t index da9f4c2e1e3..2263b393b87 100644 --- a/t/Bin2Unicode.t +++ b/t/Bin2Unicode.t @@ -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, @@ -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', @@ -62,7 +62,7 @@ ddg_goodie_test( '0100110101110101011000110110100001100001011100110010000001000111011100100110000101100011011010010110000101110011001000000100001101101111011011010111000001100001011100110100110111110000', '0100110101110101011000110110100001100001011100110010000001000111011100100110000101100011011010010110000101110011001000000100001101101111011011010111000001100001011100110100110111110000', 'Muchas Gracias CompasMð', - 1)), + 0)), '00000000' => test_zci(gen_struc_ans( '00000000', '00000000',