summaryrefslogtreecommitdiff
path: root/test/process
diff options
context:
space:
mode:
Diffstat (limited to 'test/process')
-rw-r--r--test/process/cli.zig8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/process/cli.zig b/test/process/cli.zig
index 083ba368..bf3716a8 100644
--- a/test/process/cli.zig
+++ b/test/process/cli.zig
@@ -52,8 +52,12 @@ fn helpOffline(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try expectRan(try pardes(a, exe, root, &.{ "help", "attach" }), 0, "\n pardes attach box:notes ", "help attach");
try expectRan(try pardes(a, exe, root, &.{ "help", "new" }), 0, " --detach[=NAME]", "help new");
try expectRan(try pardes(a, exe, root, &.{ "help", "fs" }), 0, "usage: fs ls [PATH]", "help fs");
- try expectRan(try pardes(a, exe, root, &.{ "help", "Newcol" }), 0, "Newcol (the root ctl; SPC c n; column)", "help Newcol");
- try expectRan(try pardes(a, exe, root, &.{ "help", "Save" }), 0, "pardes do Save", "help Save");
+ // A builtin: what `Help <Word>` shows, its whole documentation.
+ const newcol = try pardes(a, exe, root, &.{ "help", "Newcol" });
+ try expectRan(newcol, 0, "SPC c n Newcol", "help Newcol");
+ try expectRan(newcol, 0, "\nacts on: the session (over 9P, the root ctl)\n", "help Newcol");
+ try expectRan(try pardes(a, exe, root, &.{ "help", "Save" }), 0, "\nfrom a shell: pardes do Save [ARG]\n", "help Save");
+ try expectRan(try pardes(a, exe, root, &.{ "help", "Diff" }), 0, "`Diff <hash>`", "help Diff");
try expectRan(try pardes(a, exe, root, &.{ "help", "pane/3/addr" }), 0, "pane/<n>/ name body tag", "help pane/3/addr");
try expectRan(try pardes(a, exe, root, &.{ "help", "nowhere" }), 1, "is not a command, a builtin", "help nowhere");
const all = try pardes(a, exe, root, &.{ "help", "--all" });