summaryrefslogtreecommitdiff
path: root/test/fs.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-29 05:16:33 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:16 -0300
commitc27e38eb3e97fd505255ee4b42d32ddc77c58ced (patch)
tree16ca3a42f84d15ed06c6102615947334fad14e4e /test/fs.py
parent32198b59020e295efbc48de343a9de69c952dcfc (diff)
downloadpardes-c27e38eb3e97fd505255ee4b42d32ddc77c58ced.tar.gz
pardes-c27e38eb3e97fd505255ee4b42d32ddc77c58ced.zip
/commands takes each word's own doc comment, whole, without citations
Repl showed Joincol's first line and Joincol another's, because a comment had drifted above the wrong declaration in builtins.zig; Kill's was cut mid-sentence and Exit's cited exec.c:892. The drifted line is back on Joincol, a parenthesis citing source (.c, .zig) is dropped, and the first sentence is kept whole up to 240 bytes, then cut between words with an ellipsis. A test checks every description opens its own word's comment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/fs.py')
-rw-r--r--test/fs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fs.py b/test/fs.py
index 9fb560e0..b7e8adcc 100644
--- a/test/fs.py
+++ b/test/fs.py
@@ -276,7 +276,7 @@ def discovery(binary, embedded=False):
# word, `arg` if it takes one, its ctl, a setting's values, then `-- ` what it does
assert all(r.split()[2 if r.split()[1] == 'arg' else 1] in ('root', 'pane', 'both') for r in commands), commands
assert row('Placement arg root acme,pardes'), commands
- assert client.stat('/commands')['length'] == len('\n'.join(commands)) + 1
+ assert client.stat('/commands')['length'] == len('\n'.join(commands).encode()) + 1 # bytes: a description may end in …
client.write(f'/pane/{first}/ctl', b'Msg said through ctl\n')
assert 'said through ctl' in ''.join(cell[0] for cell in client.screen()['cells'])
assert set(client.list('/pane')) == {'new', str(fixture), str(first), str(second)}