[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[8305] 60macro.t empty_macro_argument
From: |
gavinsmith0123 |
Subject: |
[8305] 60macro.t empty_macro_argument |
Date: |
Wed, 17 Oct 2018 07:42:27 -0400 (EDT) |
Revision: 8305
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8305
Author: gavin
Date: 2018-10-17 07:42:26 -0400 (Wed, 17 Oct 2018)
Log Message:
-----------
60macro.t empty_macro_argument
Modified Paths:
--------------
trunk/ChangeLog
trunk/tp/t/60macro.t
Added Paths:
-----------
trunk/tp/t/results/macro/empty_macro_argument.pl
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2018-10-17 11:24:15 UTC (rev 8304)
+++ trunk/ChangeLog 2018-10-17 11:42:26 UTC (rev 8305)
@@ -1,5 +1,9 @@
2018-10-17 Gavin Smith <address@hidden>
+ * tp/t/60macro.t (empty_macro_argument): New test.
+
+2018-10-17 Gavin Smith <address@hidden>
+
* tp/Texinfo/Parser.pm (_parse_texi) <@titlepage>: Do not save
'@author' as a global command.
Modified: trunk/tp/t/60macro.t
===================================================================
--- trunk/tp/t/60macro.t 2018-10-17 11:24:15 UTC (rev 8304)
+++ trunk/tp/t/60macro.t 2018-10-17 11:42:26 UTC (rev 8305)
@@ -993,6 +993,13 @@
@mymacro{}.
'],
+['empty_macro_argument',
+'@macro mymacro{}
+text
address@hidden macro
+
address@hidden @mymacro{ } @mymacro{ } @mymacro{ x}'
+],
);
my @todo =(
Added: trunk/tp/t/results/macro/empty_macro_argument.pl
===================================================================
--- trunk/tp/t/results/macro/empty_macro_argument.pl
(rev 0)
+++ trunk/tp/t/results/macro/empty_macro_argument.pl 2018-10-17 11:42:26 UTC
(rev 8305)
@@ -0,0 +1,100 @@
+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{'empty_macro_argument'} = {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'parent' => {},
+ 'text' => 'mymacro',
+ 'type' => 'macro_name'
+ }
+ ],
+ 'cmdname' => 'macro',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'text',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'last_raw_newline'
+ }
+ ],
+ 'extra' => {
+ 'arg_line' => ' mymacro{}
+'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'text text text text'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ }
+ ],
+ 'type' => 'text_root'
+};
+$result_trees{'empty_macro_argument'}{'contents'}[0]{'args'}[0]{'parent'} =
$result_trees{'empty_macro_argument'}{'contents'}[0];
+$result_trees{'empty_macro_argument'}{'contents'}[0]{'contents'}[0]{'parent'}
= $result_trees{'empty_macro_argument'}{'contents'}[0];
+$result_trees{'empty_macro_argument'}{'contents'}[0]{'contents'}[1]{'parent'}
= $result_trees{'empty_macro_argument'}{'contents'}[0];
+$result_trees{'empty_macro_argument'}{'contents'}[0]{'parent'} =
$result_trees{'empty_macro_argument'};
+$result_trees{'empty_macro_argument'}{'contents'}[1]{'parent'} =
$result_trees{'empty_macro_argument'};
+$result_trees{'empty_macro_argument'}{'contents'}[2]{'parent'} =
$result_trees{'empty_macro_argument'};
+$result_trees{'empty_macro_argument'}{'contents'}[3]{'contents'}[0]{'parent'}
= $result_trees{'empty_macro_argument'}{'contents'}[3];
+$result_trees{'empty_macro_argument'}{'contents'}[3]{'parent'} =
$result_trees{'empty_macro_argument'};
+
+$result_texis{'empty_macro_argument'} = '@macro mymacro{}
+text
address@hidden macro
+
+text text text text';
+
+
+$result_texts{'empty_macro_argument'} = '
+text text text text';
+
+$result_errors{'empty_macro_argument'} = [
+ {
+ 'error_line' => ':5: macro `mymacro\' declared without argument called
with an argument
+',
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => '',
+ 'text' => 'macro `mymacro\' declared without argument called with an
argument',
+ 'type' => 'error'
+ }
+];
+
+
+1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [8305] 60macro.t empty_macro_argument,
gavinsmith0123 <=