[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 02/06: [tbl]: Expand regression test for Savannah #49490.
From: |
G. Branden Robinson |
Subject: |
[groff] 02/06: [tbl]: Expand regression test for Savannah #49490. |
Date: |
Sat, 30 Jul 2022 20:43:24 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit b4911936d175cdd9cb2c80d8c2fa98a3c00ccd3c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Jul 30 14:46:15 2022 -0500
[tbl]: Expand regression test for Savannah #49490.
Check for overlap of double box borders, too.
* src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh: Do it.
Test fails at this commit.
---
ChangeLog | 8 +++++++
.../tests/do-not-overlap-bottom-border-in-nroff.sh | 26 +++++++++++++++++++++-
2 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 9c7ea31e2..d225c7956 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2022-07-30 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [tbl]: Expand regression test for Savannah #49490. Check for
+ overlap of double box borders, too.
+
+ * src/preproc/tbl/tests/\
+ do-not-overlap-bottom-border-in-nroff.sh: Do it.
+
2022-07-30 G. Branden Robinson <g.branden.robinson@gmail.com>
[tbl]: Fix Savannah #49390.
diff --git a/src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh
b/src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh
index 304ec0027..4f63eed29 100755
--- a/src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh
+++ b/src/preproc/tbl/tests/do-not-overlap-bottom-border-in-nroff.sh
@@ -20,6 +20,13 @@
groff="${abs_top_builddir:-.}/test-groff"
+fail=
+
+wail () {
+ echo "...FAILED" >&2
+ fail=yes
+}
+
# Regression-test Savannah #49390.
input='foo
@@ -32,7 +39,24 @@ baz
.pl \n(nlu
'
+echo "checking for post-table text non-overlap of (single) box border"
+output=$(printf "%s" "$input" | "$groff" -t -Tascii)
+echo "$output" | grep -q baz || wail
+
+input='foo
+.TS
+doublebox;
+L.
+bar
+.TE
+baz
+.pl \n(nlu
+'
+
+echo "checking for post-table text non-overlap of double box border"
output=$(printf "%s" "$input" | "$groff" -t -Tascii)
-echo "$output" | grep -q baz
+echo "$output" | grep -q baz || wail
+
+test -z "$fail"
# vim:set ai et sw=4 ts=4 tw=72:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 02/06: [tbl]: Expand regression test for Savannah #49490.,
G. Branden Robinson <=