[Po4a-commits] "po4a/t 23-man.t,1.14,1.15"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Fri Mar 14 22:44:05 UTC 2008


Update of /cvsroot/po4a/po4a/t
In directory alioth:/tmp/cvs-serv29798/t

Modified Files:
	23-man.t 
Log Message:
* lib/Locale/Po4a/Man.pm: Do not change - to \- in \(-x \Z'...'
  \H'...' \*[...]
* t/23-man.t, t/data-23/hyphens.1, t/data-23/hyphens.translate.fr,
  t/data-23/hyphens.translate.fr.po, t/data-23/hyphens.translate.pot,
  t/data-23/hyphens.verbatim.fr, t/data-23/hyphens.verbatim.fr.po,
  t/data-23/hyphens.verbatim.pot: Add new tests for hyphens.
* MANIFEST: Distribute the new tests.


Index: 23-man.t
===================================================================
RCS file: /cvsroot/po4a/po4a/t/23-man.t,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- 23-man.t	14 Mar 2008 20:04:52 -0000	1.14
+++ 23-man.t	14 Mar 2008 22:44:02 -0000	1.15
@@ -168,8 +168,26 @@
   'doc'  => "translate this document (ja EUC-JP)",
 };
 
+# Hyphens (4 tests)
+push @tests, {
+  'run'  => "LC_ALL=C perl ../po4a-gettextize -f #format# -m data-23/hyphens.1 -p tmp/hyphens.pot -o groff_code=verbatim 2>/dev/null",
+  'test' => "diff -u $diff_po_flags  data-23/hyphens.verbatim.pot tmp/hyphens.pot",
+  'doc'  => "gettextize well hyphens (verbatim)",
+}, {
+  'run'  => "perl ../po4a-translate -f #format# -m data-23/hyphens.1 -p data-23/hyphens.verbatim.fr.po -l tmp/hyphens.fr -o groff_code=verbatim",
+  'test' => "diff -u $diff_pod_flags data-23/hyphens.verbatim.fr tmp/hyphens.fr",
+  'doc'  => "translate this document",
+}, {
+  'run'  => "LC_ALL=C perl ../po4a-gettextize -f #format# -m data-23/hyphens.1 -p tmp/hyphens.pot -o groff_code=translate 2>/dev/null",
+  'test' => "diff -u $diff_po_flags  data-23/hyphens.translate.pot tmp/hyphens.pot",
+  'doc'  => "gettextize well hyphens (translate)",
+}, {
+  'run'  => "perl ../po4a-translate -f #format# -m data-23/hyphens.1 -p data-23/hyphens.translate.fr.po -l tmp/hyphens.fr -o groff_code=translate",
+  'test' => "diff -u $diff_pod_flags data-23/hyphens.translate.fr tmp/hyphens.fr",
+  'doc'  => "translate this document",
+};
 
-use Test::More tests => 60; # $formats * $tests * 2 
+use Test::More tests => 68; # $formats * $tests * 2 
 
 foreach my $format (@formats) {
     for (my $i=0; $i<scalar @tests; $i++) {




More information about the Po4a-commits mailing list