File: no_escape.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-- 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');