File: decompose.t

package info (click to toggle)
libmarc-charset-perl 0.95-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,444 kB
  • ctags: 75
  • sloc: xml: 98,939; perl: 612; makefile: 52
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' );