gbranden pushed a commit to branch master
in repository groff.

commit 72909db9667f668576e76d459aac5f7e03038fce
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Nov 6 03:26:18 2025 -0600

    [groff]: Add compat mode delim neg testing (2/x).
    
    * src/roff/groff/tests/check-delimiter-validity.sh: Add negative
      testing.  Verify that conditional expression operators and characters
      constitutive of numeric expressions are invalid as output comparison
      expression delimiters in compatibility mode.
---
 ChangeLog                                        |  7 +++++++
 src/roff/groff/tests/check-delimiter-validity.sh | 11 +++++++++++
 2 files changed, 18 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 684479297..421415f60 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: Add negative
+       testing.  Verify that conditional expression operators and
+       characters constitutive of numeric expressions are invalid as
+       output comparison expression delimiters in compatibility mode.
+
 2025-11-06  G. Branden Robinson <[email protected]>
 
        * src/roff/groff/tests/check-delimiter-validity.sh: Add negative
diff --git a/src/roff/groff/tests/check-delimiter-validity.sh 
b/src/roff/groff/tests/check-delimiter-validity.sh
index 77c219fbc..543169efa 100755
--- a/src/roff/groff/tests/check-delimiter-validity.sh
+++ b/src/roff/groff/tests/check-delimiter-validity.sh
@@ -150,6 +150,17 @@ do
     echo "$output" | grep -Fqx ___ || wail
 done
 
+for c in e n o t \
+         0 1 2 3 4 5 6 7 8 9 + - / '*' % '<' '>' = '&' : '(' ')' . '|' \
+         '!'
+do
+  echo "checking invalidity of '$c' as output comparison delimiter" \
+    "in compatibility mode" >&2
+  output=$(printf '.if %c@@@%c@@@%c ___\n' "$c" "$c" "$c" \
+    | "$groff" -C -w delim -T ascii -P -cbou | sed '/^$/d')
+  echo "$output" | grep -Fqx ___ && wail
+done
+
 test -z "$fail"
 
 # vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:

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

Reply via email to