groff-commit
[Top][All Lists]
Advanced

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

[groff] 36/115: [ms]: Regression-test Savannah #64013.


From: G. Branden Robinson
Subject: [groff] 36/115: [ms]: Regression-test Savannah #64013.
Date: Thu, 1 Jun 2023 10:46:05 -0400 (EDT)

gbranden pushed a commit to branch branden-2022-06-01
in repository groff.

commit e54332823c52203106c8604a3d21d96a8df1da40
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 7 19:14:23 2023 -0500

    [ms]: Regression-test Savannah #64013.
    
    * tmac/tests/s_EQ-handles-empty-first-arg.sh: Do it.
    * tmac/tmac.am (tmac_TESTS): Run test.
    
    Test fails at this commit.
---
 ChangeLog                                  |  7 ++++++
 tmac/tests/s_EQ-handles-empty-first-arg.sh | 36 ++++++++++++++++++++++++++++++
 tmac/tmac.am                               |  1 +
 3 files changed, 44 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 54423a6fd..463d4dcac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-04-07  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [ms]: Regression-test Savannah #64013.
+
+       * tmac/tests/s_EQ-handles-empty-first-arg.sh: Do it.
+       * tmac/tmac.am (tmac_TESTS): Run test.
+
 2023-04-05  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [ms]: Fix Savannah #64005.
diff --git a/tmac/tests/s_EQ-handles-empty-first-arg.sh 
b/tmac/tests/s_EQ-handles-empty-first-arg.sh
new file mode 100755
index 000000000..29fd02066
--- /dev/null
+++ b/tmac/tests/s_EQ-handles-empty-first-arg.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# Copyright (C) 2023 Free Software Foundation, Inc.
+#
+# This file is part of groff.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+# Regression-test Savannah #64013.
+#
+# Render an equation label even if the alignment argument is empty.
+
+input='.LP
+.EQ "" (1)
+x + y = z
+.EN'
+
+output=$(printf "%s\n" "$input" | "$groff" -e -ms -Tascii -P-cbou)
+echo "$output"
+echo "$output" | grep -qx ' *x+y=z *(1)'
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 0476ff640..16346763a 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -224,6 +224,7 @@ tmac_TESTS = \
   tmac/tests/localization-works.sh \
   tmac/tests/pdfpic_does-not-choke-on-bad-pdfinfo-output.sh \
   tmac/tests/pdfpic_falls-back-to-PSPIC.sh \
+  tmac/tests/s_EQ-handles-empty-first-arg.sh \
   tmac/tests/s_IP-indents-using-paragraph-type-size.sh \
   tmac/tests/s_IP-respects-inter-sentence-space-in-tags.sh \
   tmac/tests/s_PN-works.sh \



reply via email to

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