From: Don Armstrong Date: Wed, 11 Apr 2012 00:41:32 +0000 (-0700) Subject: add Debbugs::Common test framework X-Git-Tag: release/2.6.0~376^2~17 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=1377f5789e58b9b569d5f942ffb1688e1677e79d add Debbugs::Common test framework --- diff --git a/t/02_common.t b/t/02_common.t new file mode 100644 index 0000000..df07193 --- /dev/null +++ b/t/02_common.t @@ -0,0 +1,13 @@ +# -*- mode: cperl;-*- + +use Test::More tests => 5; + +use_ok('Debbugs::Common'); +is_deeply(Debbugs::Common::encode_utf8_structure( + {a => decode_utf8('föö'), + b => [map {decode_utf8($_)} qw(blëh bl♥h)], + }), + {a => 'föö', + b => [qw(blëh bl♥h)], + }, + );