Acme-Umlautify
view release on metacpan or search on metacpan
use Acme::Umlautify;
use Test::Simple tests => 4;
use utf8;
use strict;
my $au = new Acme::Umlautify;
ok($au);
my $check = $au->do('This is a test of the emergency umlaut system!');
ok($check eq 'TÌhÌiÌsÌ iÌsÌ aÌ tÌeÌsÌtÌ oÌfÌ tÌhÌeÌ eÌmÌeÌrÌgÌeÌnÌcÌyÌ uÌmÌlÌaÌuÌtÌ sÌyÌsÌtÌeÌmÌ!Ì','String comparison');
my @array = $au->do(qw/foo bar baz/);
my $test = join ':', @array;
ok(scalar(@array) == 3, 'Array count');
ok($test eq 'fÌoÌoÌ:bÌaÌrÌ:bÌaÌzÌ', 'Array test');
( run in 0.573 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )