diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 06:33:52 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 06:33:53 -0300 |
| commit | ffe05cceb897b3ae6a6d36491f9318a8aa3426e7 (patch) | |
| tree | 352414579559060b3e8486af34e29d49fd5df781 /test/output.zig | |
| parent | 5b7124d10f9b2db8d1c5e99eacb9b6d2fffff0cc (diff) | |
| parent | a403340ec5c90238b136ca85fc64d65809b29a65 (diff) | |
| download | pardes-ffe05cceb897b3ae6a6d36491f9318a8aa3426e7.tar.gz pardes-ffe05cceb897b3ae6a6d36491f9318a8aa3426e7.zip | |
integration: the build's second pass on the handle and the devices once: pardes-build-pass2 (pardes-isolate and the tree-sitter=disabled tier deleted; one option, grammars = none | minimal | full; build.zig with the consumer's lines as its head comment; test/lib -> test/consumer; the manual's library section) and pardes-merge31, merged without a textual conflict; one line follows a deletion: dev/file_watch.zig's end-to-end test of a session's watches (written since on the base) guarded on fs.platform_has_fs, which the first of these changes deleted: the guard reads as the file's other tests' (comptime !supported); tui core-test 857/1008 (151 skipped), shell-test 1048/1051, the window builds; the coordinator's gate in the ledger (reorg/merge32)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/output.zig')
| -rw-r--r-- | test/output.zig | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/output.zig b/test/output.zig index c5ddddd5..77de7649 100644 --- a/test/output.zig +++ b/test/output.zig @@ -138,7 +138,7 @@ test "location producers retain rendered location match and diagnostic styles" { } else if (origin == .search or origin == .cmd) { try std.testing.expectEqual(pardes.Color{ .rgb = chrome.search_bg }, first.style.bg); } - if (!diagnostic and pardes.syntax.enabled) { + if (!diagnostic) { const number = start + std.mem.indexOf(u8, code, "42").?; try std.testing.expectEqual(pardes.Color{ .rgb = p.theme().num }, outputCell(p, surface, id, number).style.fg); } @@ -428,7 +428,6 @@ test "Mini dump preserves its exact virtual snapshot and body writes detach colo } test "Mini syntax colors survive themes and rendering without source access" { - if (!pardes.syntax.enabled) return error.SkipZigTest; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "demo.zig", .data = "pub fn main() void {\n if (true) return;\n}\n" }); @@ -619,7 +618,6 @@ fn selectedOutputText(pane: *const pardes.Pane) ?[]const u8 { } test "LookNext/LookPrev skips formatted context and selects comment match locations" { - if (!pardes.syntax.enabled) return error.SkipZigTest; for ([_]panes.Output.Origin{ .search, .{ .query = .references } }) |origin| { for ([_]bool{ false, true }) |tslocations| { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 30 }); @@ -786,7 +784,7 @@ test "identical result refresh keeps warm content caches without allocation" { const index = try panes.File.lineIndex(p.gpa, file); const styles = try std.testing.allocator.dupe(u8, file.highlights); defer std.testing.allocator.free(styles); - if (@import("pardes_options").grammars != .disabled) try std.testing.expect(styles.len > 0); + try std.testing.expect(styles.len > 0); const revision = file.revision; const saved_revision = file.saved_revision; const body_ptr = file.content.ptr; @@ -1048,7 +1046,6 @@ test "result alignment chunks assign boundary context to nearest match with prev } test "declaration context ellipses mark only final header lines before omitted source" { - if (!pardes.syntax.enabled) return error.SkipZigTest; const text = "const Outer = struct {\n" ++ "\n" ++ " pub fn run(\n" ++ @@ -1161,7 +1158,6 @@ test "LSP occurrence tint follows the supplied source span through context" { } test "result context upper bound stops at earliest enclosing declaration" { - if (!pardes.syntax.enabled) return error.SkipZigTest; const text = "// unrelated prelude\n" ++ "const unrelated = 1;\n" ++ "\n" ++ @@ -1227,7 +1223,6 @@ test "result context upper bound stops at earliest enclosing declaration" { } test "stacked search and LSP results retain source tint navigation and dump ownership" { - if (!pardes.syntax.enabled) return error.SkipZigTest; const first = "\tfoo + 界 + foo;"; const second = " return foo;"; const source_text = "const Box = struct {\n fn run() void {\n" ++ first ++ "\n const neighbor = 42;\n" ++ second ++ "\n }\n};\n"; @@ -1348,7 +1343,6 @@ test "stacked search and LSP results retain source tint navigation and dump owne } test "location analysis cache refreshes unsaved ancestry and query context" { - if (!pardes.syntax.enabled) return error.SkipZigTest; const before = "const Outer = struct {\n" ++ " fn first() void {\n" ++ " marker();\n" ++ @@ -1429,7 +1423,6 @@ test "location analysis cache refreshes unsaved ancestry and query context" { } test "location cache eviction retains early colors and honors disk and unsaved replacements" { - if (!pardes.syntax.enabled) return error.SkipZigTest; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); var dir_buf: [4096]u8 = undefined; |
