groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/04: [ms test]: Fix typo and rename file.


From: G. Branden Robinson
Subject: [groff] 01/04: [ms test]: Fix typo and rename file.
Date: Mon, 26 Oct 2020 05:02:28 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 739f7ad01a9d5c18cd07386f136261605f6aadc4
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Oct 26 18:31:14 2020 +1100

    [ms test]: Fix typo and rename file.
    
    One character slipped away as part of a regex rewrite.  The test works
    and remains working, but this way it will also detect a page numbering
    error in the main matter.  Which is an abuse of scope, but this is the
    only ms test we _have_.  Though that's about to change.
    
    Also rename test file per the convention in use.
---
 ...-in-custom-titles.sh => s_TC-works-with-percent-in-custom-titles.sh} | 2 +-
 tmac/tmac.am                                                            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tmac/tests/s-TC-works-with-percent-in-custom-titles.sh 
b/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
similarity index 95%
rename from tmac/tests/s-TC-works-with-percent-in-custom-titles.sh
rename to tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
index 23362fe..ce74bcc 100755
--- a/tmac/tests/s-TC-works-with-percent-in-custom-titles.sh
+++ b/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
@@ -46,7 +46,7 @@ FAIL=
 
 if [ -z "$(echo "$OUTPUT" \
     | sed '/^$/d' \
-    | sed -n '/i/{N;/Table of Contents/{N;/Foo[. ]\+/p}}')" ]
+    | sed -n '/i/{N;/Table of Contents/{N;/Foo[. ]\+1/p}}')" ]
 then
     FAIL=yes
 fi
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 2d55b05..5464b85 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -175,7 +175,7 @@ tmac_TESTS = \
   tmac/tests/andoc-flush-between-packages.sh \
   tmac/tests/doc-accept-mixed-case-section-headings.sh \
   tmac/tests/doc-smoke-test.sh \
-  tmac/tests/s-TC-works-with-percent-in-custom-titles.sh
+  tmac/tests/s_TC-works-with-percent-in-custom-titles.sh
 TESTS += $(tmac_TESTS)
 EXTRA_DIST += $(tmac_TESTS)
 



reply via email to

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