use strict; use utf8; use Encode; use Test::More; use Acme::SuddenlyDeath; my $got; my $expect; $got = Encode::decode_utf8(suddenly_death_single("突然の死")); $expect = '_人人人人人_> 突然の死 < ̄^Y^Y^Y^Y^ ̄'; is($got, $expect, 'single: 1'); $got = Encode::decode_utf8(suddenly_death_single("suddenly death")); $expect = '_人人人人人人人人_> suddenly death < ̄^Y^Y^Y^Y^Y^Y^Y^ ̄'; is($got, $expect, 'single: 2'); $got = Encode::decode_utf8(suddenly_death_single("突然の death")); $expect = '_人人人人人人人_> 突然の death < ̄^Y^Y^Y^Y^Y^Y^ ̄'; is($got, $expect, 'single: 3'); done_testing;