use utf-8 encoding
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 15 Oct 2010 13:36:56 +0000 (13:36 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 15 Oct 2010 13:36:56 +0000 (13:36 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1341 07558da8-63fa-0310-ba24-9fe276d99e06

t/3-normalize.t

index a0ebebe..5dc5a63 100755 (executable)
@@ -3,7 +3,9 @@
 use strict;
 use lib 'lib';
 
-use Test::More tests => 355;
+use Test::More tests => 357;
+
+use utf8;
 
 BEGIN {
        use_ok( 'WebPAC::Test' );
@@ -55,7 +57,7 @@ my $rec2 = {
             } ],
  '700' => [ {
               'a' => 'Haynal',
-              'b' => 'André'
+              'b' => 'André'
             } ],
  '801' => [ 'FFZG' ],
  '991' => [ '8302' ],
@@ -78,7 +80,7 @@ my $rec2 = {
               'e' => 'from Freud and Ferenczi to Michael balint',
               'a' => 'Controversies in psychoanalytic method',
               'g' => 'translated by Elizabeth Holder on the basisi of a first draft by Archie Hooton ; with a preface by Daniel N. Stern',
-              'f' => 'by André E. Haynal'
+              'f' => 'by André E. Haynal'
             } ],
  '610' => [ 'povijest psihoanalize' ],
  '994' => [ {
@@ -916,5 +918,11 @@ sub test_s {
                cmp_ok( $rows->[ $i - 1 ]->{e}, '==', $i, "e $i" );
        }
 
+       test_rule( 'utf-8'
+               , { '900' => [{ a => 'Čev', b => 'ić' }] }
+               , qq{ join_with('', rec(900,'a'), 'apč', rec(900,'b') ) }
+               , [ "\x{10C}evap\x{10D}i\x{107}" ]
+       );
+
 }