[bug #64959] [troff] add unit tests for `device` and `output` requests

2024-01-10 Thread G. Branden Robinson
Update of bug#64959 (group groff):

  Status: In Progress => Fixed  
 Open/Closed:Open => Closed 
 Planned Release:None => 1.24.0 

___

Follow-up Comment #3:


commit 76b48901e8815939636edb91040c4ff2ac2bca1a
Author: G. Branden Robinson 
Date:   Mon Jan 8 19:31:59 2024 -0600

[troff]: Add unit test for `device` request.

* src/roff/groff/tests/device-request-works.sh: Add test.
* src/roff/groff/groff.am (groff_TESTS): Run test.

Fixes .

commit 587316f3b4beaae9f56458b5026abcad6a5299c0
Author: G. Branden Robinson 
Date:   Mon Jan 8 06:39:28 2024 -0600

[troff]: Add tests of "early" formatter features.

[troff]: Add tests of early usage of formatter features that throw fatal
errors when called "too early", but for which this error handling
appears to be dead code.  Further test the `output` request in
furtherance of Savannah #64959.

* src/roff/groff/tests/backslash-exclamation-early-does-not-fail.sh:
* src/roff/groff/tests/cf-request-early-does-not-fail.sh:
* src/roff/groff/tests/output-request-works.sh: Add tests.

* src/roff/groff/groff.am (groff_TESTS): Run tests.




___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #64959] [troff] add unit tests for `device` and `output` requests

2024-01-08 Thread G. Branden Robinson
Follow-up Comment #2, bug#64959 (group groff):

[comment #1 comment #1:]
> Being dealt with in bug #65118.

Nope.  Bug #65138.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #64959] [troff] add unit tests for `device` and `output` requests

2024-01-08 Thread G. Branden Robinson
Update of bug#64959 (group groff):

  Status:None => In Progress
 Assigned to:None => gbranden   

___

Follow-up Comment #1:


[comment #0 original submission:]
> There appears to be an undiagnosed issue with `device`.  You can invoke it
"too early", and it won't appear on the output.  This might be the case any
time the vertical drawing position is negative.  Investigate and document.

Being dealt with in bug #65118.
 
> You can invoke `output` wherever you want, but this can also break the
invariant claimed in "Document parts" [sic] of groff_out(5).  So something
documentary needs to be said about that too.

I think I was mistaken here.  While developing unit tests, I can't actually
get anything to appear ahead of the "grout leader" ("x T ps" and so forth).

The rest is in progress.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




[bug #64959] [troff] add unit tests for `device` and `output` requests

2023-12-01 Thread G. Branden Robinson
URL:
  

 Summary: [troff] add unit tests for `device` and `output`
requests 
   Group: GNU roff
   Submitter: gbranden
   Submitted: Fri 01 Dec 2023 09:13:13 PM UTC
Category: Core
Severity: 1 - Wish
  Item Group: Test
  Status: None
 Privacy: Public
 Assigned to: None
 Open/Closed: Open
 Discussion Lock: Any
 Planned Release: None


___

Follow-up Comments:


---
Date: Fri 01 Dec 2023 09:13:13 PM UTC By: G. Branden Robinson 
Check a few cases:

1. plain usage
2. leading quotation mark for passage of multi-word argument(s)
3. usage very early in the document

There appears to be an undiagnosed issue with `device`.  You can invoke it
"too early", and it won't appear on the output.  This might be the case any
time the vertical drawing position is negative.  Investigate and document.

You can invoke `output` wherever you want, but this can also break the
invariant claimed in "Document parts" [sic] of groff_out(5).  So something
documentary needs to be said about that too.







___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/