File: o-stroke.t

package info (click to toggle)
libmarc-charset-perl 1.35-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 2,476 kB
  • sloc: xml: 99,038; perl: 774; makefile: 6
file content (13 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;

use MARC::Charset qw/marc8_to_utf8/;
use Test::More tests => 2;

use utf8;

my $marc8_ostroke = "\xB2";
my $utf8_ostroke  = marc8_to_utf8($marc8_ostroke);

ok(utf8::is_utf8($utf8_ostroke), 'UTF8 flag set after converting LATIN SMALL LETTER O WITH STROKE to UTF8');
is($utf8_ostroke, 'ΓΈ', 'successful conversion of LATIN SMALL LETTER O WITH STROKE');