summaryrefslogtreecommitdiff
path: root/test/output.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-15 15:25:11 -0300
committerGabriel Schneider <[email protected]>2026-09-15 17:24:42 -0300
commit95f41f0eccd27d2823ffd49bc6cd9bf01fadcc4e (patch)
tree2b8e2cbe71838b99460b2e86f253f32267912e18 /test/output.zig
parent3327666759d47cad41d97264cd1f7b8ec64eafed (diff)
downloadpardes-95f41f0eccd27d2823ffd49bc6cd9bf01fadcc4e.tar.gz
pardes-95f41f0eccd27d2823ffd49bc6cd9bf01fadcc4e.zip
Align search and LSP context locations flush left
Diffstat (limited to 'test/output.zig')
-rw-r--r--test/output.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/output.zig b/test/output.zig
index 42b1ce7c..e835a474 100644
--- a/test/output.zig
+++ b/test/output.zig
@@ -287,9 +287,9 @@ test "Find sorts whole filenames and next location uses numeric columns" {
try std.testing.expectEqualStrings("x:10\nx:2\n", result.file.?.content);
try std.testing.expectEqual(@as(usize, 1), source.search_row.?);
const rows = "with space.zig:2:2-3 first\nwith space.zig:2:10-12 next\nwith space.zig:10:1 later";
- try std.testing.expectEqual(@as(usize, 1), panes.Output.nextResult(rows, "with space.zig", .{ .line = 2, .col = 3 }));
- try std.testing.expectEqual(@as(usize, 2), panes.Output.nextResult(rows, "with space.zig", .{ .line = 2, .col = 10 }));
- try std.testing.expectEqual(@as(usize, 0), panes.Output.nextResult(rows, "with space.zig", .{ .line = 10, .col = 1 }));
+ try std.testing.expectEqual(@as(usize, 1), panes.Output.nextResult(rows, &.{}, "with space.zig", .{ .line = 2, .col = 3 }));
+ try std.testing.expectEqual(@as(usize, 2), panes.Output.nextResult(rows, &.{}, "with space.zig", .{ .line = 2, .col = 10 }));
+ try std.testing.expectEqual(@as(usize, 0), panes.Output.nextResult(rows, &.{}, "with space.zig", .{ .line = 10, .col = 1 }));
}
test "result stepping reaches an unterminated last row" {