From 967bbf36a3c1ef6d22c0f5b223cb792bf9ace49e Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Sat, 13 Jul 2024 09:57:08 -0500 Subject: [PATCH 1/2] [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 caeac9e66..90aff0aea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-07-13 G. Branden Robinson + + * tmac/tests/an-ext_SY-and-YS-work.sh: Test new behavior of `YS` + when given an argument. + 2024-07-13 G. Branden Robinson * 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 -- 2.30.2