texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/tp/t converters_tests.t results/convert...


From: Patrice Dumas
Subject: texinfo/tp/t converters_tests.t results/convert...
Date: Thu, 29 Sep 2011 22:12:55 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/09/29 22:12:55

Modified files:
        tp/t           : converters_tests.t 
Added files:
        tp/t/results/converters_tests: accent_with_text.pl 

Log message:
        New test.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/converters_tests.t?cvsroot=texinfo&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/converters_tests/accent_with_text.pl?cvsroot=texinfo&rev=1.1

Patches:
Index: converters_tests.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/converters_tests.t,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- converters_tests.t  13 Aug 2011 18:40:21 -0000      1.5
+++ converters_tests.t  29 Sep 2011 22:12:55 -0000      1.6
@@ -115,6 +115,9 @@
 ['accent',
 $accents_text
 ],
+['accent_with_text',
+'@u{--a} @dotless{--b} @address@hidden @address@hidden @^{--a}
+'],
 ['refs_formatting',
 '@node chapter
 @chapter chapter

Index: results/converters_tests/accent_with_text.pl
===================================================================
RCS file: results/converters_tests/accent_with_text.pl
diff -N results/converters_tests/accent_with_text.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ results/converters_tests/accent_with_text.pl        29 Sep 2011 22:12:55 
-0000      1.1
@@ -0,0 +1,232 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'accent_with_text'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => '--a'
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            }
+          ],
+          'cmdname' => 'u',
+          'contents' => [],
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => ' '
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => '--b'
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            }
+          ],
+          'cmdname' => 'dotless',
+          'contents' => [],
+          'line_nr' => {},
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => ' '
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => '--'
+                },
+                {
+                  'args' => [
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => 'i'
+                        }
+                      ],
+                      'parent' => {},
+                      'type' => 'brace_command_arg'
+                    }
+                  ],
+                  'cmdname' => 'dotless',
+                  'contents' => [],
+                  'line_nr' => {},
+                  'parent' => {}
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            }
+          ],
+          'cmdname' => '^',
+          'contents' => [],
+          'line_nr' => {},
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => ' '
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => '--'
+                },
+                {
+                  'args' => [
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => 'j'
+                        }
+                      ],
+                      'parent' => {},
+                      'type' => 'brace_command_arg'
+                    }
+                  ],
+                  'cmdname' => 'dotless',
+                  'contents' => [],
+                  'line_nr' => {},
+                  'parent' => {}
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            }
+          ],
+          'cmdname' => '^',
+          'contents' => [],
+          'line_nr' => {},
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => ' '
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => '--a'
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            }
+          ],
+          'cmdname' => '^',
+          'contents' => [],
+          'line_nr' => {},
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+'
+        }
+      ],
+      'parent' => {},
+      'type' => 'paragraph'
+    }
+  ],
+  'type' => 'text_root'
+};
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[2];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[2]{'line_nr'} = 
$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'line_nr'};
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[2]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[3]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[1];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[1]{'line_nr'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'line_nr'};
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'args'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'line_nr'} = 
$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'line_nr'};
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[4]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[5]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[1];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[1]{'line_nr'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'line_nr'};
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'args'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'line_nr'} = 
$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'line_nr'};
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[6]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[7]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[8]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[8]{'args'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[8]{'args'}[0]{'parent'}
 = $result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[8];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[8]{'line_nr'} = 
$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[0]{'line_nr'};
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[8]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'contents'}[9]{'parent'} = 
$result_trees{'accent_with_text'}{'contents'}[0];
+$result_trees{'accent_with_text'}{'contents'}[0]{'parent'} = 
$result_trees{'accent_with_text'};
+
+$result_texis{'accent_with_text'} = '@u{--a} @dotless{--b} @address@hidden 
@address@hidden @^{--a}
+';
+
+
+$result_texts{'accent_with_text'} = '-a( -b i^ j^ -a^
+';
+
+$result_errors{'accent_with_text'} = [
+  {
+    'error_line' => ':1: @dotless expects `i\' or `j\' as argument, not `--b\'
+',
+    'file_name' => '',
+    'line_nr' => 1,
+    'macro' => '',
+    'text' => '@dotless expects `i\' or `j\' as argument, not `--b\'',
+    'type' => 'error'
+  }
+];
+
+
+
+$result_converted{'plaintext'}->{'accent_with_text'} = '-a( -b i^ j^ -a^
+';
+
+
+$result_converted{'html_text'}->{'accent_with_text'} = '<p>&ndash;a( &ndash;b 
&icirc; &#309; &ndash;a^
+</p>';
+
+1;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]