groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 11/16: tmac/tests/doc_Nm-works.sh: Add more checks.


From: G. Branden Robinson
Subject: [groff] 11/16: tmac/tests/doc_Nm-works.sh: Add more checks.
Date: Wed, 14 Dec 2022 21:12:15 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 624e7ec1f02068c103c27884dbbf150f18fab7b8
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Dec 14 18:17:21 2022 -0600

    tmac/tests/doc_Nm-works.sh: Add more checks.
    
    Test fails at this commit.
---
 ChangeLog                  |  4 ++++
 tmac/tests/doc_Nm-works.sh | 10 ++++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a08782a4a..ee500c059 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2022-12-15  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * tmac/tests/doc_Nm-works.sh: Add more checks.
+
 2022-12-13  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/roff/groff/tests/smoke-test_html_device.sh: Add checks for
diff --git a/tmac/tests/doc_Nm-works.sh b/tmac/tests/doc_Nm-works.sh
index 7a07833d0..a27e931de 100755
--- a/tmac/tests/doc_Nm-works.sh
+++ b/tmac/tests/doc_Nm-works.sh
@@ -39,9 +39,10 @@ input='.Dd 2022-11-17
 .Nm
 is a program.'
 
+echo "checking Nm's interpolation of text after initial call" >&2
 output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -mdoc)
 echo "$output"
-echo "$output" | grep 'foo is a program\.' || wail
+echo "$output" | grep -q 'foo is a program\.' || wail
 
 # Handle multiple declarations in "Name" section.
 
@@ -61,7 +62,12 @@ an angle
 
 output=$(printf "%s\n" "$input" | "$groff" -Tascii -P-cbou -mdoc)
 echo "$output"
-echo "$output" | grep 'sin returns the sine' || wail
+
+echo "checking Nm behavior when called multiple times (Name)" >&2
+echo "$output" | grep -q 'sin, cos, tan -- trigonometric' || wail
+
+echo "checking Nm behavior when called multiple times (Description)" >&2
+echo "$output" | grep -q 'sin returns the sine' || wail
 
 test -z "$fail"
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]