[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 03/04: [tests]: Add regression test for Savannah #59742.
From: |
G. Branden Robinson |
Subject: |
[groff] 03/04: [tests]: Add regression test for Savannah #59742. |
Date: |
Mon, 21 Dec 2020 23:07:41 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit fa6742dbdf51d7af17a6fb735fca07561d3ba360
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Dec 22 14:23:51 2020 +1100
[tests]: Add regression test for Savannah #59742.
* tmac/tests/s_IP_respects_inter-sentence_space_in_tags.sh: Do it.
* tmac/tmac.am (tmac_TESTS): Run it.
---
ChangeLog | 8 +++++
.../s_IP_respects_inter-sentence_space_in_tags.sh | 40 ++++++++++++++++++++++
tmac/tmac.am | 1 +
3 files changed, 49 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index bd9d3a0..3b300f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-12-21 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ Add regression test for Savannah #59742.
+
+ * tmac/tests/s_IP_respects_inter-sentence_space_in_tags.sh: Do
+ it.
+ * tmac/tmac.am (tmac_TESTS): Run it.
+
2020-12-21 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* src/utils/addftinfo/addftinfo.cpp (usage): Use size_t for loop
diff --git a/tmac/tests/s_IP_respects_inter-sentence_space_in_tags.sh
b/tmac/tests/s_IP_respects_inter-sentence_space_in_tags.sh
new file mode 100755
index 0000000..70ca4d0
--- /dev/null
+++ b/tmac/tests/s_IP_respects_inter-sentence_space_in_tags.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# Copyright (C) 2020 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 #59742.
+#
+# Ensure that a non-default inter-sentence space setting is respected
+# inside a multi-sentence tag to an indented paragraph.
+
+EXAMPLE=\
+'.ss 12 24
+.LP
+Foo. Bar.
+.IP "Baz. Qux."
+Foo. Bar.
+'
+
+echo "$EXAMPLE" \
+ | "$groff" -Tascii -P-cbou -ms \
+ | grep -qx 'Baz\. Qux\.' # 3 spaces.
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 499ee04..e91110b 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -179,6 +179,7 @@ tmac_TESTS = \
tmac/tests/doc-accept-mixed-case-section-headings.sh \
tmac/tests/doc-do_not_loop_infinitely_when_shortening_headers.sh \
tmac/tests/doc-smoke-test.sh \
+ tmac/tests/s_IP_respects_inter-sentence_space_in_tags.sh \
tmac/tests/s_R-handles-its-arguments.sh \
tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
TESTS += $(tmac_TESTS)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 03/04: [tests]: Add regression test for Savannah #59742.,
G. Branden Robinson <=