diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 11:34:37 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 11:43:44 -0300 |
| commit | c9d27f179b096c4334bc01c2054a6bbf90e298de (patch) | |
| tree | 72dbf14cb6ebb4bf5608559e4650eca3a141b2d0 /test/behaviour/builtins.zig | |
| parent | 49ed5492dec8275ace22e37003f4de548b2d2fc5 (diff) | |
| download | pardes-c9d27f179b096c4334bc01c2054a6bbf90e298de.tar.gz pardes-c9d27f179b096c4334bc01c2054a6bbf90e298de.zip | |
test: review of the core2 migration's tests: the column tag's Home seen to scroll its text back (the whole text drawn from its first cell), not only its caret; window keys' column tag left as it was by w, so normal mode is checked, not inferred; window mode's d seen to ask (ask <serial> del k j in /log) between two panes and not with one; Mini's Save seen to ask for a path (ask <serial> save path); the SPC j n command-output test trimmed to the walk back from a Look's pane, its whole-row and Tab checks the Themes walk test's already; each checked to fail against a break (header scroll never stepping back, a header entered in insert mode, Del never asking, Save on an output asking nothing), and a further ten breaks of the migrated tests' behaviour each failing its test (a jump landing at column 1, no file-in-another-pane fallback, Esc not leaving window mode, under-text placement a row low, a split inserted above, Mini never refreshing, a look walk selecting one cell, a PDF's / opening a text query, the same-visit merge off across panes, byte-wise backspace)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/behaviour/builtins.zig')
| -rw-r--r-- | test/behaviour/builtins.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/behaviour/builtins.zig b/test/behaviour/builtins.zig index 6f029072..3c16a4a2 100644 --- a/test/behaviour/builtins.zig +++ b/test/behaviour/builtins.zig @@ -31,5 +31,6 @@ test "builtins: Mini maps a file of the pane's directory over pardes's own sourc try s.expect("/index", index); // Save asks for a path; nothing is written for it. try s.write(s.at("/pane/{d}/exec", .{mini}), "Save\n"); + try std.testing.expect(std.mem.indexOf(u8, try s.read("/log"), s.at("ask {d} save path\n", .{mini})) != null); try std.testing.expectEqual(@as(usize, 0), s.saved); } |
