diff options
Diffstat (limited to 'test/output.zig')
| -rw-r--r-- | test/output.zig | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/output.zig b/test/output.zig index 07a1ce23..1fcb6104 100644 --- a/test/output.zig +++ b/test/output.zig @@ -543,10 +543,10 @@ test "Config prints the startup path and refreshes its one output" { const out = p.panes[opened].?.file.?; for ([_][]const u8{ "Startup config: " ++ path ++ "\n", - "Theme: orchard\n", - "Shell requested (new panes): " ++ config.default_shell ++ " (default)\n", - "Shell effective (last spawn): (none)\n", - "Shell pending: on\n", + "Theme orchard\n", + "Shell requested (new panes) " ++ config.default_shell ++ " (default)\n", + "Shell effective (last spawn) (none)\n", + "Shell pending on\n", }) |line| try std.testing.expect(std.mem.indexOf(u8, out.content, line) != null); try std.testing.expectEqualStrings(config.config_buffer, std.fs.path.basename(out.path)); try std.testing.expectEqual(panes.Output.Origin{ .cmd = .Config }, out.output.?.from); @@ -653,36 +653,36 @@ test "every enabled setting builtin mutates the State Config reports" { try std.testing.expect(p.executeBuiltinLine(p.active, "Config")); const report = p.panes[p.active].?.file.?.content; for ([_][]const u8{ - "Colors: off\n", - "Wrap: off\n", - "Tagbottom: on\n", - "Debug: on\n", - "Theme: acme\n", - "Shell requested (new panes): fish\n", + "Colors off\n", + "Wrap off\n", + "Tagbottom on\n", + "Debug on\n", + "Theme acme\n", + "Shell requested (new panes) fish\n", }) |line| try std.testing.expect(std.mem.indexOf(u8, report, line) != null); const transition = if (builtins.capabilities.panel_transitions) - try std.fmt.bufPrint(&buf, "Panel transition: {s}\n", .{ + try std.fmt.bufPrint(&buf, "Panel transition {s}\n", .{ config.Runtime.findAction(.{ .transition = p.settings.panel_transition }).?.word, }) else - "Panel transition: unsupported\n"; + "Panel transition unsupported\n"; try std.testing.expect(std.mem.indexOf(u8, report, transition) != null); const scene_status = if (builtins.capabilities.scene_shaders) "on" else "unsupported"; for ([_][]const u8{ "Crt", "Ripple", "Glitch" }) |name| { - const line = try std.fmt.bufPrint(&buf, "{s}: {s}\n", .{ name, scene_status }); + const line = try std.fmt.bufPrint(&buf, "{s} {s}\n", .{ name, scene_status }); try std.testing.expect(std.mem.indexOf(u8, report, line) != null); } const tagline = if (!builtins.capabilities.tagline_font_size) - "TaglineSize: unsupported\n" + "TaglineSize unsupported\n" else - try std.fmt.bufPrint(&buf, "TaglineSize: {d}%{s}\n", .{ + try std.fmt.bufPrint(&buf, "TaglineSize {d}{s}\n", .{ p.settings.font.tagline_percent, if (builtins.capabilities.font_picker) "" else " (build-time only)", }); try std.testing.expect(std.mem.indexOf(u8, report, tagline) != null); if (chosen_font) |name| { try std.testing.expect(std.mem.indexOf(u8, report, name) != null); - try std.testing.expect(std.mem.indexOf(u8, report, "Font pending: on\n") != null); + try std.testing.expect(std.mem.indexOf(u8, report, "Font pending on\n") != null); } } |
