diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/behaviour/panes.zig | 2 | ||||
| -rw-r--r-- | test/behaviour/settings.zig | 2 | ||||
| -rw-r--r-- | test/output.zig | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/behaviour/panes.zig b/test/behaviour/panes.zig index 67155776..8fb85cb7 100644 --- a/test/behaviour/panes.zig +++ b/test/behaviour/panes.zig @@ -888,7 +888,7 @@ test "panes: truncating body empties it, and a stat says the length after" { } test "panes: a rename colours a source its new name's language names, its text unchanged" { - if (!@import("pardes_config").syntax_highlighting) return error.SkipZigTest; + if (@import("pardes_config").grammars == .disabled) return error.SkipZigTest; var s = try Session.initFile(std.testing.allocator, "fn check() void {}\n"); defer s.deinit(); const n = try s.focused(); diff --git a/test/behaviour/settings.zig b/test/behaviour/settings.zig index 66cd97df..bd88b75e 100644 --- a/test/behaviour/settings.zig +++ b/test/behaviour/settings.zig @@ -158,7 +158,7 @@ test "settings: Back and Forward written to exec keep to the focused file" { }); } -const syntax = @import("pardes_config").syntax_highlighting; +const syntax = @import("pardes_config").grammars != .disabled; /// The style /screen draws the cell `into` cells into the first place /// `text` is drawn. diff --git a/test/output.zig b/test/output.zig index 38e8ba0d..17525616 100644 --- a/test/output.zig +++ b/test/output.zig @@ -786,7 +786,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_config").syntax_zig_grammar) try std.testing.expect(styles.len > 0); + if (@import("pardes_config").grammars != .disabled) try std.testing.expect(styles.len > 0); const revision = file.revision; const saved_revision = file.saved_revision; const body_ptr = file.content.ptr; |
