Test::More::UTF8(3)
okay bestie, welcome to Test::More::UTF8(3) β a User Contributed Perl Documentation page thatβs lowkey a glow-up for UTF8-based Perl testing π
πΈ 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
π LIMITATIONS π
This module only has a reason to exist for perl 5.8 and higher, bestie. Thatβs the whole limitation vibe π
π FEATURES π
It also switches on the utf8 pragma by default. To disable this, add the -utf8 option:
-utf8β turns off that default-onutf8pragma:
use Test::More::UTF8 qw(-utf8);
By default, binmode ':utf8' will be done on all output handles: failure_output, todo_output, output. You can choose only some of them, no cap:
failureβ enable:utf8only onfailure_output:
use Test::More::UTF8 qw(failure); # enable :utf8 only on failure_output
todoβ enable:utf8only ontodo_output:
use Test::More::UTF8 qw(todo); # enable :utf8 only on todo_output
outβ enable:utf8only onoutput:
use Test::More::UTF8 qw(out); # enable :utf8 only on output
π AUTHOR π
Mons Anderson, <mons@cpan.org> π«Ά
π BUGS π
None known β periodt π
π COPYRIGHT & LICENSE π
Copyright 2009 Mons Anderson, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
made with π from perl v5.42.0, dated 2017-06-25, for Test::More::UTF8(3) β bye bestie! π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-More-UTF8 0.05-bp160.1.2 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms