The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/env perl

use strict;
use warnings;
use Test::More;
use Test::Exception;

my $pkg;

BEGIN {
    $pkg = 'Catmandu::Fix::rename';
    use_ok $pkg;
}

is_deeply $pkg->new('dots', '\.', '-')
    ->fix({dots => {'a.b' => [{'c.d' => ""}]}}),
    {dots => {'a-b' => [{'c-d' => ""}]}};

done_testing;