gbranden pushed a commit to branch master
in repository groff.

commit 7a3b68f53b8cce7b4a0ead334cab91df885039f1
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 22 13:59:01 2026 -0600

    [soelim]: Add more test cases to FSM exerciser.
    
    * src/preproc/soelim/tests/exercise-finite-state-machine.sh: Verify that
      all valid FSM states are reachable.
---
 src/preproc/soelim/tests/exercise-finite-state-machine.sh | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/preproc/soelim/tests/exercise-finite-state-machine.sh 
b/src/preproc/soelim/tests/exercise-finite-state-machine.sh
index 7ad3fb544..f17b8372f 100755
--- a/src/preproc/soelim/tests/exercise-finite-state-machine.sh
+++ b/src/preproc/soelim/tests/exercise-finite-state-machine.sh
@@ -40,11 +40,20 @@ echo "checking that partial requests are passed through" >&2
 echo "$output" | tr '\n' ' ' | grep -Fq '.lf 1 "- . .s .so .l .lf .' \
     || wail
 
-# Check these same cases when they immediately precede EOF.  In the
+# A request or macro name that only _initially_ matches a token of
+# interest is not a proper match.
+
+output=$(printf ".sostuff\n.lfstuff\n" | "$soelim")
+echo "$output"
+echo "checking that 'overlong' requests are passed through" >&2
+echo "$output" | tr '\n' ' ' | grep -Fq '.lf 1 "- .sostuff .lfstuff' \
+    || wail
+
+# Check partial matches when they immediately precede EOF.  In the
 # absence of the `-r` option, GNU soelim appends the terminal newline
 # missing from the input stream.
 
-for token in .s .so .l .lf
+for token in . .s .so .l .lf
 do
     echo "checking that token '"$token"' before EOF passes through" >&2
     output=$(printf "%s" $token | "$soelim")

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to