File: no_escape.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-- 355 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More qw(no_plan);
use strict;
use warnings;

use MARC::Charset qw(marc8_to_utf8 utf8_to_marc8);
is('foobar', marc8_to_utf8('foobar'), 'no escapes');

my $text = 'All about whales.';
my $utf8 = marc8_to_utf8($text);
is($text, $utf8, 'punctuation marc8_to_utf8');

my $marc8 = utf8_to_marc8($utf8);
is($text, $marc8, 'punctuation utf8_to_marc8');