gbranden pushed a commit to branch master
in repository groff.
commit 54cdd9637922c85000f8bef00dfa8726572ef8fb
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jul 13 09:57:08 2024 -0500
[man]: Test `YS` macro harder.
* tmac/tests/an-ext_SY-and-YS-work.sh: Test new behavior of `YS` when
given an argument.
Test fails at this commit.
---
ChangeLog | 5 +++++
tmac/tests/an-ext_SY-and-YS-work.sh | 7 +++++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b57b115d1..127d91da0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-13 G. Branden Robinson <[email protected]>
+
+ * tmac/tests/an-ext_SY-and-YS-work.sh: Test new behavior of `YS`
+ when given an argument.
+
2024-07-13 G. Branden Robinson <[email protected]>
* src/preproc/eqn/main.cpp (main):
diff --git a/tmac/tests/an-ext_SY-and-YS-work.sh
b/tmac/tests/an-ext_SY-and-YS-work.sh
index a3da599d2..71d1199eb 100755
--- a/tmac/tests/an-ext_SY-and-YS-work.sh
+++ b/tmac/tests/an-ext_SY-and-YS-work.sh
@@ -125,12 +125,12 @@ foo \\- a small library for converting strings to integers
.BI TYPE\~ max );
.YS .
.
-.B int
+.B unsigned int
.SY a2u (
.B TYPE,
.BI TYPE\~*restrict\~ n ,
.BI const\~char\~* s ,
-.BI char\~**_Nullable\~restrict\~ endp ,
+.BI char\~**_NotNullable\~restrict\~ endp ,
.BI int\~ base ,
.BI TYPE\~ min ,
.BI TYPE\~ max );
@@ -139,6 +139,9 @@ foo \\- a small library for converting strings to integers
output2=$(echo "$input2" | "$groff" -rLL=80n -man -T ascii -P -cbou)
echo "$output2"
+echo 'checking for indentation reuse' >&2
+echo "$output2" | grep -Eq '^ {13}char \*\*_NotNullable' || wail
+
echo 'checking for automatic hyphenation disablement inside synopsis' \
>&2
echo "$output2" | grep -q 're-$' && wail
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit