gbranden pushed a commit to branch master
in repository groff.

commit 63a7aed4cd9700e3a5280e123e21275313cab3dd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Sep 11 12:49:03 2025 -0500

    [groff]: Add test case for `asciify` of init `\%`.
    
    * src/roff/groff/tests/asciify-request-works.sh: Add test case for
      transformation of nodes produced by `\%` (hyphenation control escape
      sequence) when it leads a word.
    
    Change the escape character because we're going to need one other than
    `#` for a forthcoming test of a diverted `trf` request.
---
 ChangeLog                                     |  6 ++++++
 src/roff/groff/tests/asciify-request-works.sh | 19 +++++++++++++++----
 2 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 45c6c7c0e..b609f8eb9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-09-11  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/asciify-request-works.sh: Add test case
+       for transformation of nodes produced by `\%` (hyphenation
+       control escape sequence) when it leads a word.
+
 2025-09-11  G. Branden Robinson <[email protected]>
 
        * src/roff/groff/tests/asciify-request-works.sh: Add test case
diff --git a/src/roff/groff/tests/asciify-request-works.sh 
b/src/roff/groff/tests/asciify-request-works.sh
index c477adc18..159e2465d 100755
--- a/src/roff/groff/tests/asciify-request-works.sh
+++ b/src/roff/groff/tests/asciify-request-works.sh
@@ -30,7 +30,7 @@ input='.
 .ec #
 !#?qux#?!
 .br
-.box DIV
+.box DIV1
 foobar        baz#" leader, then tab
 .char #[Z] ZYX
 A#[dq]#[e aa]#[u00E1]#[u0106]i#[fl]o#[Fl]#[Z]
@@ -42,11 +42,19 @@ A#[dq]#[e aa]#[u00E1]#[u0106]i#[fl]o#[Fl]#[Z]
 .ds leader #a#"
 5@#X"bar"6@#v".5v"7@#*[tab]8@#h"2m"9@# 10@#~11@#:12@#*[leader]13@#
 #?jat#?14@
-.ec
 .br
 .box
-.asciify DIV
-.DIV
+.asciify DIV1
+.DIV1
+.br
+.ec $
+.box DIV2
+$%antimatter15@
+.br
+.box
+.asciify DIV2
+.DIV2
+.ec
 .'
 
 output=$(printf "%s\n" "$input" | "$groff" -T ps -a)
@@ -122,6 +130,9 @@ echo "$output" | grep -q '!!' || wail
 echo "checking textification of diverted uninterpreted character sequence 
escape sequence" >&2
 echo "$output" | grep -q '13@jat14' || wail
 
+echo "checking textification of hyphenation inhibitor escape sequence" >&2
+echo "$output" | grep -q '^antimatter15' || wail
+
 test -z "$fail"
 
 # vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72:

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to