- Add new commands: annotate, narrative, requeue - Refactor WebSocket client into modular components (net/ws/) - Add rsync embedded binary support - Improve error handling and response packet processing - Update build.zig and completions
18 lines
655 B
Zig
18 lines
655 B
Zig
const std = @import("std");
|
|
const testing = std.testing;
|
|
const src = @import("src");
|
|
const commands = src.commands;
|
|
|
|
test "jupyter top-level action includes create" {
|
|
try testing.expect(commands.jupyter.isValidTopLevelAction("create"));
|
|
try testing.expect(commands.jupyter.isValidTopLevelAction("start"));
|
|
try testing.expect(!commands.jupyter.isValidTopLevelAction("bogus"));
|
|
}
|
|
|
|
test "jupyter defaultWorkspacePath prefixes ./" {
|
|
const allocator = testing.allocator;
|
|
const p = try commands.jupyter.defaultWorkspacePath(allocator, "my-workspace");
|
|
defer allocator.free(p);
|
|
|
|
try testing.expectEqualStrings("./my-workspace", p);
|
|
}
|