gbranden pushed a commit to branch master
in repository groff.

commit 1db1a92717327245bebfd9855e824e30d7d9b3a3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 22 17:29:07 2026 -0500

    [groff]: Fix goofs in Roman numeral format tests.
    
    * src/roff/groff/tests/roman-format-register-interpolation-works.sh: Fix
      missing parentheses in AT&T troff register interpolation syntax.  Make
      final two test cases capable of actually failing.
    
    Continues commit 5050eecc10, 16 April.
---
 ChangeLog                                                        | 9 +++++++++
 .../groff/tests/roman-format-register-interpolation-works.sh     | 8 ++++----
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 94f54a03e..7b2befeb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-04-22  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/\
+       roman-format-register-interpolation-works.sh: Fix missing
+       parentheses in AT&T troff register interpolation syntax.  Make
+       final two test cases capable of actually failing.
+
+       Continues commit 5050eecc10, 16 April.
+
 2026-04-22  G. Branden Robinson <[email protected]>
 
        [groff]: Unit-test `\l` and `\L` escape sequences.
diff --git a/src/roff/groff/tests/roman-format-register-interpolation-works.sh 
b/src/roff/groff/tests/roman-format-register-interpolation-works.sh
index ba77252ff..5fab3a28e 100755
--- a/src/roff/groff/tests/roman-format-register-interpolation-works.sh
+++ b/src/roff/groff/tests/roman-format-register-interpolation-works.sh
@@ -93,13 +93,13 @@ echo "$output2b" | grep -qx "4000 MW 9000 MZ 39999 
ZZZMZCMXCIX" || wail
 
 echo "checking that lowercase roman numeral register interpolation" \
     "format works with nonpositive values" >&2
-printf '.nr r0\n.nr r1 -1\n\n.af r0 i\n.af r1 i\n\\nr0 \\nr1\n' \
-    | "$groff" -T ascii | grep -qx -- '0 -i'
+printf '.nr r0\n.nr r1 -1\n\n.af r0 i\n.af r1 i\n\\n(r0 \\n(r1\n' \
+    | "$groff" -T ascii | grep -qx -- '0 -i' || wail
 
 echo "checking that uppercase roman numeral register interpolation" \
     "format works with nonpositive values" >&2
-printf '.nr r0\n.nr r1 -1\n\n.af r0 I\n.af r1 I\n\\nr0 \\nr1\n' \
-    | "$groff" -T ascii | grep -qx -- '0 -I'
+printf '.nr r0\n.nr r1 -1\n\n.af r0 I\n.af r1 I\n\\n(r0 \\n(r1\n' \
+    | "$groff" -T ascii | grep -qx -- '0 -I' || wail
 
 test -z "$fail"
 

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

Reply via email to