ICU: add test for multi-line rule
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 Nov 2010 14:29:28 +0000 (15:29 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 Nov 2010 14:29:28 +0000 (15:29 +0100)
test/Makefile.am
test/tsticu-2.input [new file with mode: 0644]
test/tsticu-2.output [new file with mode: 0644]
test/tsticu-2.xml [new file with mode: 0644]

index 23b2f12..1fb2c35 100644 (file)
@@ -23,6 +23,7 @@ EXTRA_DIST = tstodr.asn test_odrcodec.c test_odrcodec.h cql2xcqlsample \
  marccol5.u8.marc marccol5.u8.1.lst marccol5.u8.2.lst \
  tsticu-0.xml tsticu-0.input tsticu-0.output \
  tsticu-1.xml tsticu-1.input tsticu-1.output \
+ tsticu-2.xml tsticu-2.input tsticu-2.output \
  test_record_conv.xsl test_xml_include.xml
 
 YAZCOMP = ../util/yaz-asncomp
diff --git a/test/tsticu-2.input b/test/tsticu-2.input
new file mode 100644 (file)
index 0000000..579a976
--- /dev/null
@@ -0,0 +1,2 @@
+`a'
+``a''
diff --git a/test/tsticu-2.output b/test/tsticu-2.output
new file mode 100644 (file)
index 0000000..b5ee584
--- /dev/null
@@ -0,0 +1,4 @@
+1 1 '‘a'
+' ''
+2 2 '“a''
+' ''
diff --git a/test/tsticu-2.xml b/test/tsticu-2.xml
new file mode 100644 (file)
index 0000000..eea85bd
--- /dev/null
@@ -0,0 +1,8 @@
+<icu_chain locale="en">
+ <transliterate>
+$back = \` ;
+$back $back > “ ; # generate right d.q.m. (double quotation mark)
+$back > ‘ ;
+ </transliterate>
+</icu_chain>
+