diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:55:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:02:08 -0300 |
| commit | fc2bc8b80cf524c4a4800b8492b1ddcd6e693ab9 (patch) | |
| tree | c513336568a71910710e99cf3cc18b7a1d67d431 /test | |
| parent | c7bab5ec27f8dc1058e282fbbfc8fe9f01cd78bf (diff) | |
| download | pardes-fc2bc8b80cf524c4a4800b8492b1ddcd6e693ab9.tar.gz pardes-fc2bc8b80cf524c4a4800b8492b1ddcd6e693ab9.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test')
| -rw-r--r-- | test/panes.zig | 8 |
1 files changed, 1 insertions, 7 deletions
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( |
