diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
| commit | 0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (patch) | |
| tree | f2e288668decded9276ebc45907f16d651b06f9e /test/fs_namespace.zig | |
| parent | 2ab05b536bc3b063666b5aaab497157adc2a9120 (diff) | |
| parent | bf351b62e8843a3d173cedeefa2dd0b8ef4b4392 (diff) | |
| download | pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.tar.gz pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.zip | |
integration: a pane's and a view's slot as types, with the regular-expression fixes and the fixes the real loops asked for: pardes-ids (Pane.Id and View.Id through the entries, the events, the effects, the Host table and the device messages) and pardes-merge21, merged without a textual conflict; one call site written since on the old type follows (core/draw.zig: the twin test's file_changed event, .pane = .at(0)); tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/fs_namespace.zig')
| -rw-r--r-- | test/fs_namespace.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig index fa6657eb..ceda8158 100644 --- a/test/fs_namespace.zig +++ b/test/fs_namespace.zig @@ -203,7 +203,7 @@ test "explicit OS file opens and restores keep their names and request watches" try std.testing.expectEqualStrings("const disk = 1;\n", pane.file.?.content); var watched_open = false; while (p.nextEffect()) |effect| if (effect == .watch and effect.watch.on) { - if (effect.watch.pane == opened) watched_open = true; + if (effect.watch.pane.index() == opened) watched_open = true; }; try std.testing.expect(watched_open); // Unsaved, dumped and loaded: its text kept, its file watched again. @@ -216,7 +216,7 @@ test "explicit OS file opens and restores keep their names and request watches" try std.testing.expectEqualStrings("// unsaved\nconst disk = 1;\n", copy.file.?.content); var watched_restore = false; while (restored.nextEffect()) |effect| if (effect == .watch and effect.watch.on) { - if (effect.watch.pane == opened) watched_restore = true; + if (effect.watch.pane.index() == opened) watched_restore = true; }; try std.testing.expect(watched_restore); } @@ -256,7 +256,7 @@ test "owned cwd failed file opens never publish a pane or retain a reservation" const p = try pardes.Pardes.init(allocator.allocator(), .{ .tty_only = true }); defer p.deinit(); const source = try p.setTestFile("source body\n"); - p.setCwd(0, "/source/directory"); + p.setCwd(.at(0), "/source/directory"); while (p.nextEffect()) |_| {} var path: [128]u8 = undefined; const name = try std.fmt.bufPrint(&path, "/virtual/pane/{d}/body", .{source.serial}); |
