texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: add test result


From: Gavin D. Smith
Subject: branch master updated: add test result
Date: Sun, 27 Nov 2022 14:56:29 -0500

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new ad95e728f0 add test result
ad95e728f0 is described below

commit ad95e728f0679b497f5feebe4324f1b854c286ef
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Nov 27 19:56:21 2022 +0000

    add test result
---
 tp/Makefile.tres                                 |   1 +
 tp/t/results/coverage/bye_on_end_command_line.pl | 146 +++++++++++++++++++++++
 2 files changed, 147 insertions(+)

diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index b816cf6ff1..c4b98d8fdf 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -229,6 +229,7 @@ test_files_generated_list = 
$(test_tap_files_generated_list) \
   t/results/coverage/arg_in_brace_no_arg_command.pl \
   t/results/coverage/at_after_accent_command.pl \
   t/results/coverage/block_commands.pl \
+  t/results/coverage/bye_on_end_command_line.pl \
   t/results/coverage/cartouche.pl \
   t/results/coverage/cartouche_in_example.pl \
   t/results/coverage/cartouche_in_quotation.pl \
diff --git a/tp/t/results/coverage/bye_on_end_command_line.pl 
b/tp/t/results/coverage/bye_on_end_command_line.pl
new file mode 100644
index 0000000000..cd75a40d1e
--- /dev/null
+++ b/tp/t/results/coverage/bye_on_end_command_line.pl
@@ -0,0 +1,146 @@
+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 %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'bye_on_end_command_line'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'args' => [
+            {
+              'info' => {
+                'spaces_after_argument' => '
+'
+              },
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'cartouche',
+          'contents' => [
+            {
+              'contents' => [
+                {
+                  'text' => 'in cartouche.
+'
+                },
+                {
+                  'args' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => 'cartouche'
+                        }
+                      ],
+                      'type' => 'line_arg'
+                    }
+                  ],
+                  'cmdname' => 'end',
+                  'info' => {
+                    'spaces_before_argument' => ' '
+                  },
+                  'source_info' => {
+                    'file_name' => '',
+                    'line_nr' => 3,
+                    'macro' => ''
+                  }
+                }
+              ],
+              'type' => 'paragraph'
+            }
+          ],
+          'source_info' => {
+            'file_name' => '',
+            'line_nr' => 1,
+            'macro' => ''
+          }
+        }
+      ],
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'text' => '
+',
+          'type' => 'misc_arg'
+        }
+      ],
+      'cmdname' => 'bye'
+    }
+  ],
+  'type' => 'document_root'
+};
+
+$result_texis{'bye_on_end_command_line'} = '@cartouche
+in cartouche.
+@end cartouche@bye
+';
+
+
+$result_texts{'bye_on_end_command_line'} = 'in cartouche.
+';
+
+$result_errors{'bye_on_end_command_line'} = [
+  {
+    'error_line' => 'warning: @bye should only appear at the beginning of a 
line
+',
+    'file_name' => '',
+    'line_nr' => 3,
+    'macro' => '',
+    'text' => '@bye should only appear at the beginning of a line',
+    'type' => 'warning'
+  },
+  {
+    'error_line' => 'warning: @bye should not appear in @end
+',
+    'file_name' => '',
+    'line_nr' => 3,
+    'macro' => '',
+    'text' => '@bye should not appear in @end',
+    'type' => 'warning'
+  },
+  {
+    'error_line' => '@bye seen before @end cartouche
+',
+    'file_name' => '',
+    'line_nr' => 3,
+    'macro' => '',
+    'text' => '@bye seen before @end cartouche',
+    'type' => 'error'
+  }
+];
+
+
+$result_floats{'bye_on_end_command_line'} = {};
+
+
+
+$result_converted{'plaintext'}->{'bye_on_end_command_line'} = 'in cartouche.
+';
+
+
+$result_converted{'html_text'}->{'bye_on_end_command_line'} = '<table 
class="cartouche" border="1"><tr><td>
+<p>in cartouche.
+</p></td></tr></table>
+';
+
+
+$result_converted{'xml'}->{'bye_on_end_command_line'} = '<cartouche>
+<para>in cartouche.
+</para></cartouche><bye></bye>
+';
+
+
+$result_converted{'latex_text'}->{'bye_on_end_command_line'} = 
'\\begin{mdframed}[style=Texinfocartouche]
+in cartouche.
+\\end{mdframed}
+';
+
+
+$result_converted{'docbook'}->{'bye_on_end_command_line'} = '';
+
+1;



reply via email to

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