logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Test::More::UTF8 - Enhancing Test::More for UTF8-based projects

Author

       Mons Anderson, <mons@cpan.org>

Bugs

       None known

Features

       This module also switch on by default utf8 pragma. To disable this, add "-utf8" option

               use Test::More::UTF8 qw(-utf8);

       By default binmode ':utf8' will be done on all output handles: failure_output, todo_output, output. It is
       possible to choose only some of them

               use Test::More::UTF8 qw(failure); # enable :utf8 only on failure_output
               use Test::More::UTF8 qw(todo); # enable :utf8 only on todo_output
               use Test::More::UTF8 qw(out); # enable :utf8 only on output

Limitations

               This module have reason only for perl 5.8 and higher

Name

       Test::More::UTF8 - Enhancing Test::More for UTF8-based projects

Synopsis

               use Test::More;
               use Test::More::UTF8;

               # now we can easily use flagged strings without warnings like "Wide character in print ..."
               is("\x{410}","\x{420}"); # got a failure message without warnings

See Also