diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-03 17:22:47 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-03 17:24:11 -0300 |
| commit | 3632bbeaa75f912281d0c9d636feb153d04f668e (patch) | |
| tree | dd3e91c78036b3c168c71b030047f42a9b55aa31 /test/session.zig | |
| parent | 5cc02232d522d5cd5a453caedd1e592ca20471ea (diff) | |
| download | pardes-3632bbeaa75f912281d0c9d636feb153d04f668e.tar.gz pardes-3632bbeaa75f912281d0c9d636feb153d04f668e.zip | |
test: five more of src/pardes.zig's tests through the 9P tree alone (test/behaviour/placement, panes, terminals, modes): an empty active column taking a look from another column's text whole, Collapse folding a pane to its tag (no text drawn, no cursor, its tag still typed into) and restoring it, a pane its whole text fits in never scrolled for a margin, Togglettymode and Ctrl-B sharing the mode's transitions from the body or the tag and a text pane refusing it, Esc back into a file keeping its view where a look's :N centres; Session's where (the first place /screen draws a text); each checked to fail against a break (acmeColumn ignoring the active column, toggleCollapse never unfolding, the scroll margin clamped at the last line alone, toggleTty leaving the tag the keyboard, Last landing centred)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/session.zig')
| -rw-r--r-- | test/session.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/session.zig b/test/session.zig index f67f3b25..6d214874 100644 --- a/test/session.zig +++ b/test/session.zig @@ -220,6 +220,11 @@ pub const Session = struct { }; return .{ @intCast(c.get("x").?.integer), @intCast(c.get("y").?.integer) }; } + + /// Where `text` is first drawn on /screen, column and row. + pub fn where(s: *Session, text: []const u8) !struct { usize, usize } { + return s.find(text); + } }; fn refusal(path: []const u8, r: Reply) error{Refused} { |
