gbranden pushed a commit to branch master
in repository groff.
commit 4643db950b9c1a2aa451d0a45c6ac154ba72920a
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Sep 7 12:21:00 2025 -0500
[groff]: Add more `asciify` test cases.
* src/roff/groff/tests/asciify-request-works.sh: Add test cases for null
transformation (removal) of `\&`, `\(`, `\c`, `.tag`, `\X`, and `\v`.
---
ChangeLog | 6 ++++++
src/roff/groff/tests/asciify-request-works.sh | 25 +++++++++++++++++++++++++
2 files changed, 31 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 5f46ab68c..f1a24324a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-09-07 G. Branden Robinson <[email protected]>
+
+ * src/roff/groff/tests/asciify-request-works.sh: Add test cases
+ for null transformation (removal) of `\&`, `\(`, `\c`, `.tag`,
+ `\X`, and `\v`.
+
2025-09-11 Deri James <[email protected]>
[gropdf]: Fix.
diff --git a/src/roff/groff/tests/asciify-request-works.sh
b/src/roff/groff/tests/asciify-request-works.sh
index 3c80f10e2..aba424f0a 100755
--- a/src/roff/groff/tests/asciify-request-works.sh
+++ b/src/roff/groff/tests/asciify-request-works.sh
@@ -31,6 +31,11 @@ input='.
.ec #
.char #[Z] ZYX
A#[dq]#[e aa]#[u00E1]#[u0106]i#[fl]o#[Fl]#[Z]
+.br
+1@#&2@#)3@#c
+4@#c
+.tag foo
+5@#X"bar"6@#v".5v"7@
.ec
.br
.box
@@ -67,6 +72,26 @@ echo "$output" | grep -q "of<fl>" || wail
echo "checking textification of user-defined special character 'Z'" >&2
echo "$output" | grep -q "ZYX" || wail
+echo "checking textification of dummy character escape sequence" >&2
+echo "$output" | grep -q "1@2" || wail
+
+echo "checking textification of EOS-transparent dummy character" \
+ "escape sequence" >&2
+echo "$output" | grep -q "2@3" || wail
+
+echo "checking textification of output line continuation escape" \
+ "sequence" >&2
+echo "$output" | grep -q "3@4" || wail
+
+echo "checking textification of tag request" >&2
+echo "$output" | grep -q "4@5" || wail
+
+echo "checking textification of device extension escape sequence" >&2
+echo "$output" | grep -q "5@6" || wail
+
+echo "checking textification of vertical motion escape sequence" >&2
+echo "$output" | grep -q "6@7" || 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