Acme-Tategaki
view release on metacpan or search on metacpan
t/01_tategaki.t view on Meta::CPAN
use strict;
use Test::Base::Less;
use Acme::Tategaki;
use Encode;
use utf8;
filters {
input => [ qw/chomp/ ],
expected => [ qw/chomp/ ],
};
for my $block (blocks) {
is( tategaki(map {decode_utf8 $_} $block->input), decode_utf8 $block->expected );
}
done_testing;
__DATA__
===
--- input
ã»ãããµããã»ãâ
--- expected
ã»ããµãã»
ããããã
âãï¸ãï¸
===
--- input
cpan
--- expected
c
p
a
n
===
--- input
ã»ã
--- expected
ã»
ã
===
--- input
ãåã¯ããã§ã«ãæ»ãã§ããããããã
--- expected
ããæ»ãããã
ããããã§ãå
ããã§ãã«ãã¯
ï¸ãããï¸ãï¸
ããããããã
ããï¸ãããã
===
--- input
ãåã¯ï¼ãã§ã«ï¼æ»ãã§ããï¼ãã ãããï¼
--- expected
ããæ»ãããã
ã ãããã§ãå
ããã§ãã«ãã¯
ããããï¼ãï¼
ããããããã
ï¼ãï¼ãããã
===
--- input
ãåã¯ï¼ãã§ã«ï¼æ»ãã§ããï¼
--- expected
æ»ãããã
ããã§ãå
ã§ãã«ãã¯
ããï¼ãï¼
ããããã
ï¼ãããã
===
--- input
ãåã¯ããã§ã«ãæ»ãã§ãã
--- expected
( run in 1.882 second using v1.01-cache-2.11-cpan-54e63673c56 )