gbranden pushed a commit to branch master
in repository groff.

commit 3647245d5f5fe447be6f738e8c8b03c65ba75dcb
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Nov 6 02:56:41 2025 -0600

    [groff]: Test many more delimiters in normal mode.
    
    * src/roff/groff/tests/check-delimiter-validity.sh: Test many more
      delimiters in normal mode (that is, not compatibility mode), including
      punctuation characters and control characters that are valid as input.
---
 ChangeLog                                        |  7 +++++++
 src/roff/groff/tests/check-delimiter-validity.sh | 14 +++++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ae401b027..b390aaec8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-11-06  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/check-delimiter-validity.sh: Test many
+       more delimiters in normal mode (that is, not compatibility
+       mode), including punctuation characters and control characters
+       that are valid as input.
+
 2025-11-05  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (do_overstrike)
diff --git a/src/roff/groff/tests/check-delimiter-validity.sh 
b/src/roff/groff/tests/check-delimiter-validity.sh
index b586b7336..4088472e9 100755
--- a/src/roff/groff/tests/check-delimiter-validity.sh
+++ b/src/roff/groff/tests/check-delimiter-validity.sh
@@ -26,8 +26,11 @@ wail () {
   fail=YES
 }
 
+# not tested: '_' (because it's part of our delimited expression)
 for c in A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \
-         a b c d e f g h i j k l m n o p q r s t u v w x y z
+         a b c d e f g h i j k l m n o p q r s t u v w x y z \
+         '!' '"' '#' '$' "'" ',' ';' '?' \
+         '@' '[' ']' '^' '`' '{' '}' '~'
 do
     echo "checking validity of '$c' as delimiter in normal mode" \
          >&2
@@ -36,6 +39,15 @@ do
     echo "$output" | grep -Fqx ___ || wail
 done
 
+for octal in 001 002 003 004 005 006 007 010 011 014 177
+do
+    echo "checking validity of control character $octal (octal)" \
+         "as delimiter in normal mode" >&2
+    output=$(printf '\\l\'$octal'1n+2n\&_\'$octal'\n' \
+      | "$groff" -w delim -T ascii | sed '/^$/d')
+    echo "$output" | grep -Fqx ___ || wail
+done
+
 for c in 0 1 2 3 4 5 6 7 8 9 + - '(' . '|'
 do
     echo "checking invalidity of '$c' as delimiter in normal mode" \

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

Reply via email to