diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/behaviour/settings.zig | 11 | ||||
| -rw-r--r-- | test/process/tree.zig | 2 | ||||
| -rw-r--r-- | test/snapshots/pagercolor.snap | 2 |
3 files changed, 2 insertions, 13 deletions
diff --git a/test/behaviour/settings.zig b/test/behaviour/settings.zig index fdb37fa3..113a423b 100644 --- a/test/behaviour/settings.zig +++ b/test/behaviour/settings.zig @@ -14,17 +14,6 @@ fn setting(s: *Session, word: []const u8) ![]const u8 { return error.NoSuchSetting; } -test "settings: Pager is pardes by default, off taken, anything else refused with its choices" { - var s = try Session.initFile(std.testing.allocator, "x\n"); - defer s.deinit(); - try std.testing.expectEqualStrings("Pager pardes", try setting(&s, "Pager")); - try s.write("/ctl", "Pager off\n"); - try std.testing.expectEqualStrings("Pager off", try setting(&s, "Pager")); - try std.testing.expectEqual(@as(u16, 22), try s.refused("/ctl", "Pager less\n")); - try std.testing.expectEqualStrings("bad value in control message; takes pardes, off \"less\"", s.said); - try std.testing.expectEqualStrings("Pager off", try setting(&s, "Pager")); -} - test "settings: Shell refuses a path that is no executable, and bare it goes back to the default" { var s = try Session.initFile(std.testing.allocator, "x\n"); defer s.deinit(); diff --git a/test/process/tree.zig b/test/process/tree.zig index 0136cc80..8a0a8e13 100644 --- a/test/process/tree.zig +++ b/test/process/tree.zig @@ -258,7 +258,7 @@ fn discovery(gpa: std.mem.Allocator, exe: [:0]const u8) !void { if (std.mem.eql(u8, which, "arg")) which = w.next().?; try expect(contains(&.{ "root", "pane", "both" }, which)); } - try expect(row(commands, "Pager arg root pardes,off")); + try expect(row(commands, "Wrap arg root on,off")); try expect(std.mem.endsWith(u8, commands, "\n")); try expectEqual(commands.len, (try c.stat("/commands")).length); try c.write(f.at("/pane/{d}/ctl", .{first}), "Msg said through ctl\n"); diff --git a/test/snapshots/pagercolor.snap b/test/snapshots/pagercolor.snap index 650792b3..70630b0d 100644 --- a/test/snapshots/pagercolor.snap +++ b/test/snapshots/pagercolor.snap @@ -1,4 +1,4 @@ -# `pardes -` keeps a program's colours (PagerColor, on by default): its SGR +# `pardes -` keeps a program's colours: its SGR # becomes the +Pager's own colours over the plain text (red through the # theme's palette, truecolor as given, bold and underline, a man page's # overstrike), and every other escape (the OSC title) is dropped. The |
