From fc2bc8b80cf524c4a4800b8492b1ddcd6e693ab9 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:55:03 -0300 Subject: image: the three renderer toggles (toggleGlyphArt, togglePalette, toggleAscii, a line each) are the field flips at their one caller each, the Petscii, Palette and Ascii builtins, and the image tag test sets the fields it wants Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/panes.zig | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test/panes.zig') diff --git a/test/panes.zig b/test/panes.zig index 1e00fa94..22fdd225 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -2321,16 +2321,10 @@ const OutputTests = struct { const ImageTests = struct { const State = panes.Image.State; - const toggleGlyphArt = panes.Image.toggleGlyphArt; - const togglePalette = panes.Image.togglePalette; - const toggleAscii = panes.Image.toggleAscii; const tagPrefix = panes.Image.tagPrefix; test "pane-local renderer choices are visible in the image tag" { - var state: State = .{ .path = @constCast("/tmp/picture.ppm") }; - toggleGlyphArt(&state); - togglePalette(&state); - toggleAscii(&state); + const state: State = .{ .path = @constCast("/tmp/picture.ppm"), .glyph_art = true, .pmode = .terminal, .ascii = false }; const tag = try tagPrefix(std.testing.allocator, &state, state.glyph_art); defer std.testing.allocator.free(tag); try std.testing.expectEqualStrings( -- cgit v1.3