gbranden pushed a commit to branch master
in repository groff.
commit cdcb5c244a33abe12f7c544620afe0a5906fd20a
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Apr 3 21:54:44 2025 -0500
[groff]: Improve CJK break/adjustment test case.
* src/roff/groff/tests/do-not-loop-infinitely-when-breaking-cjk.sh: Make
test case more illustrative. Conform better to modern groff test
conventions.
---
ChangeLog | 6 ++++++
.../tests/do-not-loop-infinitely-when-breaking-cjk.sh | 19 ++++++++++++++-----
2 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4b11fc8c0..1e141979f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-04-03 G. Branden Robinson <[email protected]>
+
+ * src/roff/groff/tests/\
+ do-not-loop-infinitely-when-breaking-cjk.sh: Make test case more
+ illustrative. Conform better to modern groff test conventions.
+
2025-04-03 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (macro::json_dump): Always print a
diff --git a/src/roff/groff/tests/do-not-loop-infinitely-when-breaking-cjk.sh
b/src/roff/groff/tests/do-not-loop-infinitely-when-breaking-cjk.sh
index e10db3464..4efb0ad42 100755
--- a/src/roff/groff/tests/do-not-loop-infinitely-when-breaking-cjk.sh
+++ b/src/roff/groff/tests/do-not-loop-infinitely-when-breaking-cjk.sh
@@ -20,10 +20,19 @@
groff="${abs_top_builddir:-.}/test-groff"
-set -e
-
-DOC='ン
+input='.
+The next line is 65n long.
+.br
+12345678901234567890123456789012345678901234567890123456789012345
+ン
ああAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
-'
+foo
+bar
+baz
+qux
+.pl \n(nlu
+.'
+
+printf '%s\n' "$input" | "$groff" -K utf8 -T utf8 -m ja -w w
-echo "$DOC" | "$groff" -D utf8 -Tutf8 -mja -ww
+# vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit