summaryrefslogtreecommitdiff
path: root/test/behaviour
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 08:29:46 -0300
committerGabriel Schneider <[email protected]>2026-11-18 08:29:46 -0300
commit5c5e0102f92938f433a3465c92818be810c1ef78 (patch)
tree379cf5e47f2e281934236482d7a5f78db732b18b /test/behaviour
parent8640d280ebc48b0d2658aa13bee2f9ad933c39f3 (diff)
parent3350156db428656fa8e583d1971663e1c4a215b0 (diff)
downloadpardes-5c5e0102f92938f433a3465c92818be810c1ef78.tar.gz
pardes-5c5e0102f92938f433a3465c92818be810c1ef78.zip
integration: the client path's round 1 (the tty client drawing as the own terminal does, a detached session's deltas a unit a frame, the window client's wait, pardes-gui --detach as pardes) with addons in a client part 2 (a draw, ABI 3.2; the image kind where it is shown): no conflict; tui core-test 819/958 (139 skipped), shell-test 993/996, behaviour-test 273/273, replicas pass, pane-test 180/181; the window's suites and its frame corpus NOT run on this merge yet (disk)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/behaviour')
-rw-r--r--test/behaviour/addons.zig8
-rw-r--r--test/behaviour/addons_pdf.zig2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/behaviour/addons.zig b/test/behaviour/addons.zig
index 451cb1e3..49dfce79 100644
--- a/test/behaviour/addons.zig
+++ b/test/behaviour/addons.zig
@@ -37,7 +37,7 @@ test "addons: Addon load takes a library in, /addons lists it with the kinds com
defer unload(&s, "fake");
// `<kind> <version> <abi> <panes open> <path> <blake3> <state>`.
const listed = try s.read("/addons");
- try std.testing.expect(std.mem.startsWith(u8, listed, "fake 1 3.0 0 /"));
+ try std.testing.expect(std.mem.startsWith(u8, listed, "fake 1 3.2 0 /"));
var fields = std.mem.tokenizeScalar(u8, listed[0..std.mem.indexOfScalar(u8, listed, '\n').?], ' ');
for (0..5) |_| _ = fields.next();
try std.testing.expectEqual(@as(usize, 64), fields.next().?.len);
@@ -51,7 +51,7 @@ test "addons: Addon load takes a library in, /addons lists it with the kinds com
// A pane of it open, it stays; closed, it goes.
try s.write("/ctl", "Fake\n");
const pane = try paneOf(&s, "fake");
- try std.testing.expect(std.mem.startsWith(u8, try s.read("/addons"), "fake 1 3.0 1 /"));
+ try std.testing.expect(std.mem.startsWith(u8, try s.read("/addons"), "fake 1 3.2 1 /"));
try std.testing.expect(try s.refused("/ctl", "Addon unload fake\n") != 0);
try std.testing.expect(has(s.said, "1 fake pane is open"));
try s.write(s.at("/pane/{d}/ctl", .{pane}), "Del\n");
@@ -68,7 +68,7 @@ test "addons: a library of another ABI, one with no pardes_addon, and one whose
try std.testing.expect(std.mem.startsWith(u8, listed, "fakeabi 1 2.2 0 /"));
try std.testing.expect(has(listed, " refused: wants abi 2, this pardes speaks 3\n"));
try std.testing.expect(has(listed, " refused: it has no pardes_addon\n"));
- try std.testing.expect(has(listed, "\nfakeword 1 3.0 0 /"));
+ try std.testing.expect(has(listed, "\nfakeword 1 3.2 0 /"));
try std.testing.expect(has(listed, " refused: word Save is the core's\n"));
// A file that is no library at all: listed with what the loader said.
var tmp = std.testing.tmpDir(.{});
@@ -120,7 +120,7 @@ test "addons: the image addon opens the pictures a Look names, fitted, with the
defer s.deinit();
try load(&s, Session.image_addon);
const listed = try s.read("/addons");
- try std.testing.expect(std.mem.startsWith(u8, listed, "image 1 3.0 0 /") and has(listed, " loaded\n"));
+ try std.testing.expect(std.mem.startsWith(u8, listed, "image 1 3.2 0 /") and has(listed, " loaded\n"));
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
var buf: [4096]u8 = undefined;
diff --git a/test/behaviour/addons_pdf.zig b/test/behaviour/addons_pdf.zig
index 6cdeebf1..23768f61 100644
--- a/test/behaviour/addons_pdf.zig
+++ b/test/behaviour/addons_pdf.zig
@@ -38,7 +38,7 @@ test "addons: a PDF is the pdf addon's pane, its pages pictures, its page in its
s.graphics();
const n = try s.lookFile("docs/design.pdf");
try std.testing.expect(has(try s.read("/index"), " pdf "));
- try std.testing.expect(std.mem.startsWith(u8, try s.read("/addons"), "pdf 1 3.0 1 /"));
+ try std.testing.expect(std.mem.startsWith(u8, try s.read("/addons"), "pdf 1 3.2 1 /"));
const pages = (try s.pdfPage(n))[1];
try std.testing.expectEqual(@as(u32, 16), pages);
// Its first page, a picture over its body.