From 5157579ff7f9ae0cfc3c7629e953da05bce340fc Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 9 Nov 2026 00:52:52 -0300 Subject: tests: at the end of their files: every top-level test block of the 46 files that had one mid-file (the locality analysis's 45 and test/hxdiff.zig; gui.zig, macos.zig, look, host_io, 9p_io, terminal, tui, mouse, fs, replica, layout among them, 11,429 test lines), with the functions only tests call, moved after the file's code in their order, a mechanical move (.scratch/suites/tests_to_end.py), zig fmt'd; the unit suites pass as before (tui 1486/1487, gui 1536/1537, core 956/956 on both), macos.zig only parse-checked here Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/panes.zig | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/panes.zig') diff --git a/src/panes.zig b/src/panes.zig index 6b6f621a..f1bb46c8 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -699,17 +699,6 @@ pub const mini = @import("mini.zig"); pub const terminal = @import("terminal.zig"); -test { - _ = Pane; - _ = Text; - _ = File; - _ = Output; - _ = Dir; - _ = mini; - _ = @import("Kind.zig"); - _ = terminal; -} - // ---- the session's pane slots: making, finding, closing and freeing panes, and their prompts ---- const tutor_text = @embedFile("tutor.txt"); @@ -1115,6 +1104,17 @@ pub fn promptTarget(p: *Pardes, pane: *Pane) ?*Text { }; } +test { + _ = Pane; + _ = Text; + _ = File; + _ = Output; + _ = Dir; + _ = mini; + _ = @import("Kind.zig"); + _ = terminal; +} + test "owned cwd preserves long paths aliases and failed updates" { var allocator = std.testing.FailingAllocator.init(std.testing.allocator, .{}); const p = try Pardes.init(allocator.allocator(), .{ .tty_only = true }); -- cgit v1.3