texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/tp/t 08misc_commands.t results/misc_com...


From: Patrice Dumas
Subject: texinfo/tp/t 08misc_commands.t results/misc_com...
Date: Mon, 09 Jan 2012 21:36:42 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        12/01/09 21:36:42

Modified files:
        tp/t           : 08misc_commands.t 
Added files:
        tp/t/results/misc_commands: defindex_too_much_args.pl 
                                    synindex_too_much_args.pl 

Log message:
        Test too much args for synindex and defindex.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/08misc_commands.t?cvsroot=texinfo&r1=1.26&r2=1.27
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/defindex_too_much_args.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/synindex_too_much_args.pl?cvsroot=texinfo&rev=1.1

Patches:
Index: 08misc_commands.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/08misc_commands.t,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- 08misc_commands.t   7 Jan 2012 12:12:04 -0000       1.26
+++ 08misc_commands.t   9 Jan 2012 21:36:41 -0000       1.27
@@ -194,6 +194,12 @@
 @documentencoding address@hidden
 @documentencoding address@hidden'e
 '],
+['defindex_too_much_args',
+'@defindex chose    machin'
+],
+['synindex_too_much_args',
+'@syncodeindex cp fn    truc
+'],
 ['command_not_closed_in_documentencoding',
 '@documentencoding @strong{'],
 ['text_before_line_command',

Index: results/misc_commands/defindex_too_much_args.pl
===================================================================
RCS file: results/misc_commands/defindex_too_much_args.pl
diff -N results/misc_commands/defindex_too_much_args.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ results/misc_commands/defindex_too_much_args.pl     9 Jan 2012 21:36:42 
-0000       1.1
@@ -0,0 +1,66 @@
+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{'defindex_too_much_args'} = {
+  'contents' => [
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'chose    machin'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'defindex',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'text_root'
+};
+$result_trees{'defindex_too_much_args'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'defindex_too_much_args'}{'contents'}[0];
+$result_trees{'defindex_too_much_args'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'defindex_too_much_args'}{'contents'}[0]{'args'}[0];
+$result_trees{'defindex_too_much_args'}{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'defindex_too_much_args'}{'contents'}[0]{'args'}[0];
+$result_trees{'defindex_too_much_args'}{'contents'}[0]{'args'}[0]{'parent'} = 
$result_trees{'defindex_too_much_args'}{'contents'}[0];
+$result_trees{'defindex_too_much_args'}{'contents'}[0]{'parent'} = 
$result_trees{'defindex_too_much_args'};
+
+$result_texis{'defindex_too_much_args'} = '@defindex chose    machin';
+
+
+$result_texts{'defindex_too_much_args'} = '';
+
+$result_errors{'defindex_too_much_args'} = [
+  {
+    'error_line' => ':1: Bad argument to @defindex: chose    machin
+',
+    'file_name' => '',
+    'line_nr' => 1,
+    'macro' => '',
+    'text' => 'Bad argument to @defindex: chose    machin',
+    'type' => 'error'
+  }
+];
+
+
+1;

Index: results/misc_commands/synindex_too_much_args.pl
===================================================================
RCS file: results/misc_commands/synindex_too_much_args.pl
diff -N results/misc_commands/synindex_too_much_args.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ results/misc_commands/synindex_too_much_args.pl     9 Jan 2012 21:36:42 
-0000       1.1
@@ -0,0 +1,74 @@
+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{'synindex_too_much_args'} = {
+  'contents' => [
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'cp fn    truc'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'syncodeindex',
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 1,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'text_root'
+};
+$result_trees{'synindex_too_much_args'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'synindex_too_much_args'}{'contents'}[0];
+$result_trees{'synindex_too_much_args'}{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'synindex_too_much_args'}{'contents'}[0]{'args'}[0];
+$result_trees{'synindex_too_much_args'}{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'synindex_too_much_args'}{'contents'}[0]{'args'}[0];
+$result_trees{'synindex_too_much_args'}{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'synindex_too_much_args'}{'contents'}[0]{'args'}[0];
+$result_trees{'synindex_too_much_args'}{'contents'}[0]{'args'}[0]{'parent'} = 
$result_trees{'synindex_too_much_args'}{'contents'}[0];
+$result_trees{'synindex_too_much_args'}{'contents'}[0]{'parent'} = 
$result_trees{'synindex_too_much_args'};
+
+$result_texis{'synindex_too_much_args'} = '@syncodeindex cp fn    truc
+';
+
+
+$result_texts{'synindex_too_much_args'} = '';
+
+$result_errors{'synindex_too_much_args'} = [
+  {
+    'error_line' => ':1: Bad argument to @syncodeindex: cp fn    truc
+',
+    'file_name' => '',
+    'line_nr' => 1,
+    'macro' => '',
+    'text' => 'Bad argument to @syncodeindex: cp fn    truc',
+    'type' => 'error'
+  }
+];
+
+
+1;



reply via email to

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