[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 35/74: [ms]: Regression-test Savannah #64013.
From: |
G. Branden Robinson |
Subject: |
[groff] 35/74: [ms]: Regression-test Savannah #64013. |
Date: |
Fri, 28 Apr 2023 15:10:45 -0400 (EDT) |
gbranden pushed a commit to branch branden-2023-04-28
in repository groff.
commit 38242370ca98afc4f6b935b25bab64987904c6a4
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 d61bc0156..845a4896d 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 ffb3bc2e6..423925946 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -223,6 +223,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 \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 35/74: [ms]: Regression-test Savannah #64013.,
G. Branden Robinson <=