gbranden pushed a commit to branch master
in repository groff.
commit 81694f85c2b3fcef1365e72c24c6e48d0956ecc7
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Dec 29 18:51:59 2023 -0600
[tbl]: Update test.
* src/preproc/tbl/tests/check-horizontal-line-length.sh: Tweak shell
style and have test issue groff output to the standard output stream.
---
ChangeLog | 6 ++++++
src/preproc/tbl/tests/check-horizontal-line-length.sh | 18 +++++++++---------
2 files changed, 15 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 859f8d1b7..a5e82b9bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-12-29 G. Branden Robinson <[email protected]>
+
+ * src/preproc/tbl/tests/check-horizontal-line-length.sh: Tweak
+ shell style and have test issue groff output to the standard
+ output stream.
+
2023-12-29 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (charinfo::contains): Add
diff --git a/src/preproc/tbl/tests/check-horizontal-line-length.sh
b/src/preproc/tbl/tests/check-horizontal-line-length.sh
index 3d5e2a23c..699691667 100755
--- a/src/preproc/tbl/tests/check-horizontal-line-length.sh
+++ b/src/preproc/tbl/tests/check-horizontal-line-length.sh
@@ -37,11 +37,11 @@ L.
_
1234567890
.TE
-.pl \n(nlu
-'
+.pl \n(nlu'
echo "checking length of plain horizontal rule" >&2
-output=$(printf "%s" "$input" | "$groff" -Tascii -t)
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -t)
+echo "$output"
echo "$output" | grep -Eqx -- '-{11}' || wail
input='.ll 12n
@@ -51,11 +51,11 @@ _
1234567890
_
.TE
-.pl \n(nlu
-'
+.pl \n(nlu'
echo "checking intersection of vertical and horizontal rules" >&2
-output=$(printf "%s" "$input" | "$groff" -Tascii -t)
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -t)
+echo "$output"
echo "$output" | sed -n '1p' | grep -Eqx '\+-{12}\+' || wail
echo "$output" | sed -n '3p' | grep -Eqx '\+-{12}\+' || wail
@@ -65,11 +65,11 @@ box;
L.
1234567890
.TE
-.pl \n(nlu
-'
+.pl \n(nlu'
echo "checking width of boxed table" >&2
-output=$(printf "%s" "$input" | "$groff" -Tascii -t)
+output=$(printf "%s\n" "$input" | "$groff" -Tascii -t)
+echo "$output"
echo "$output" | sed -n '1p' | grep -Eqx '\+-{12}\+' || wail
echo "$output" | sed -n '3p' | grep -Eqx '\+-{12}\+' || wail
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit