gbranden pushed a commit to branch master
in repository groff.
commit e1e82c720147def63c90bae5a781fa9e9e42c2ad
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Sep 11 12:09:37 2025 -0500
[groff]: Add test case for `asciify` of `\?`.
* src/roff/groff/tests/asciify-request-works.sh: Add test case for
transformation of nodes produced by `\?` (uninterpreted character
sequence escape sequence). Check both diverted and undiverted
scenarios.
---
ChangeLog | 7 +++++++
src/roff/groff/tests/asciify-request-works.sh | 14 +++++++++++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1441a4e4d..45c6c7c0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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 `\?` (uninterpreted
+ character sequence escape sequence). Check both diverted and
+ undiverted scenarios.
+
2025-09-11 G. Branden Robinson <[email protected]>
* src/roff/groff/tests/asciify-request-works.sh: Add test cases
diff --git a/src/roff/groff/tests/asciify-request-works.sh
b/src/roff/groff/tests/asciify-request-works.sh
index c56a9c9aa..c477adc18 100755
--- a/src/roff/groff/tests/asciify-request-works.sh
+++ b/src/roff/groff/tests/asciify-request-works.sh
@@ -27,10 +27,11 @@ wail () {
}
input='.
-.box DIV
.ec #
-foobar baz#" leader, then tab
+!#?qux#?!
.br
+.box DIV
+foobar baz#" leader, then tab
.char #[Z] ZYX
A#[dq]#[e aa]#[u00E1]#[u0106]i#[fl]o#[Fl]#[Z]
.br
@@ -39,7 +40,8 @@ A#[dq]#[e aa]#[u00E1]#[u0106]i#[fl]o#[Fl]#[Z]
.tag foo
.ds tab #t#"
.ds leader #a#"
-5@#X"bar"6@#v".5v"7@#*[tab]8@#h"2m"9@# 10@#~11@#:12@#*[leader]13@
+5@#X"bar"6@#v".5v"7@#*[tab]8@#h"2m"9@# 10@#~11@#:12@#*[leader]13@#
+#?jat#?14@
.ec
.br
.box
@@ -114,6 +116,12 @@ echo "$output" | grep -q "11@12" || wail
echo "checking textification of uninterpreted leader escape sequence" >&2
echo "$output" | grep -q "12@13" || wail
+echo "checking textification of non-diverted uninterpreted character sequence
escape sequence" >&2
+echo "$output" | grep -q '!!' || wail
+
+echo "checking textification of diverted uninterpreted character sequence
escape sequence" >&2
+echo "$output" | grep -q '13@jat14' || 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