File: decompose.t

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

use Test::More tests => 1;
use MARC::Charset::Constants qw(:all);
use MARC::Charset qw(utf8_to_marc8);

# a composed unicode character c with a cedilla should
# be decomposed into the marc8 cedilla combining character
# and the letter c

is(utf8_to_marc8(chr(0x00E7)), chr(0xF0) . 'c' );