release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since 4cc49bc was
09ff1eb,
checked in by Nelson Elhage <nelhage@mit.edu>, 15 years ago
|
Some simple tests for perlglue functions handling Unicode properly.
|
-
Property mode set to
100644
|
File size:
294 bytes
|
Line | |
---|
1 | #!/usr/bin/env perl |
---|
2 | use strict; |
---|
3 | use warnings; |
---|
4 | use utf8; |
---|
5 | use Encode; |
---|
6 | |
---|
7 | BEGIN { bootstrap BarnOwl; }; |
---|
8 | |
---|
9 | use Test::More qw(no_plan); |
---|
10 | |
---|
11 | my $unicode = "“hello”"; |
---|
12 | |
---|
13 | ok(Encode::is_utf8($unicode)); |
---|
14 | ok(Encode::is_utf8(BarnOwl::wordwrap($unicode, 100))); |
---|
15 | |
---|
16 | is(BarnOwl::wordwrap($unicode, 100), $unicode); |
---|
Note: See
TracBrowser
for help on using the repository browser.