https://github.com/mons/test-more-utf8
Enhancing Test::More for UTF8-based projects
https://github.com/mons/test-more-utf8
Last synced: 10 months ago
JSON representation
Enhancing Test::More for UTF8-based projects
- Host: GitHub
- URL: https://github.com/mons/test-more-utf8
- Owner: Mons
- Created: 2012-09-06T07:53:04.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2017-06-24T21:06:41.000Z (almost 9 years ago)
- Last Synced: 2025-08-13T20:55:42.688Z (10 months ago)
- Language: Perl
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
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 have reason only for perl 5.8 and higher
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
AUTHOR
Mons Anderson,
BUGS
None known
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.