groff-commit
[Top][All Lists]
Advanced

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

[groff] 83/115: [tbl]: Regression-test Savannah #64122.


From: G. Branden Robinson
Subject: [groff] 83/115: [tbl]: Regression-test Savannah #64122.
Date: Thu, 1 Jun 2023 10:46:14 -0400 (EDT)

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

commit 6cc2055418cb6d20dd808bca111a14b9c4dca9ac
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 28 06:15:38 2023 -0500

    [tbl]: Regression-test Savannah #64122.
    
    * src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh:
      Update input and add check.
    
    Test fails at this commit.
---
 ChangeLog                                              |  8 ++++++++
 .../tests/save-and-restore-hyphenation-parameters.sh   | 18 +++++++++++++++++-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 916a159ff..60a35a322 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-04-28  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [tbl]: Regression-test Savannah #64122.
+
+       * src/preproc/tbl/tests/\
+       save-and-restore-hyphenation-parameters.sh: Update input and add
+       check.
+
 2023-04-25  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [troff]: Drop `POPEN_MISSING` preprocessor macro.
diff --git a/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh 
b/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh
index f2334b0e2..14b6f283d 100755
--- a/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh
+++ b/src/preproc/tbl/tests/save-and-restore-hyphenation-parameters.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2021 Free Software Foundation, Inc.
+# Copyright (C) 2021-2023 Free Software Foundation, Inc.
 #
 # This file is part of groff.
 #
@@ -34,9 +34,15 @@ wail () {
 
 input='.nr LL 78n
 .hw a-bc-def-ghij-klmno-pqrstu-vwxyz
+.hym 2n
+.hys 1n
 .LP
+before: .hym=\n[.hym], .hys=\n[.hys]
+.br
+.
 Here is a table with hyphenation disabled in its text block.
 .
+.
 .TS
 tab(@);
 L Lx.
@@ -48,6 +54,11 @@ abcdefghijklmnopqrstuvwxyz
 T}
 .TE
 .
+.
+.LP
+after: .hym=\n[.hym], .hys=\n[.hys]
+.br
+.
 Let us see if hyphenation is enabled again as it should be.
 abcdefghijklmnopqrstuvwxyz'
 
@@ -61,6 +72,11 @@ echo "$output" | grep '^foo' | grep -- '-$' && wail
 echo "checking whether hyphenation enabled after table" >&2
 echo "$output" | grep -qx 'Let us see.*lmno-' || wail
 
+# Regression-test Savannah #64122.
+
+echo "checking whether hyphenation margin and spacing preserved" >&2
+echo "$output" | grep -Fqx 'after: .hym=48, .hys=24' || wail
+
 test -z "$fail"
 
 # vim:set ai et sw=4 ts=4 tw=72:



reply via email to

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