fetch_ml/cli/tests/jupyter_test.zig
Jeremie Fraeys 8e3fa94322
feat(cli): enhance Zig CLI with new commands and improved networking
- 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
2026-02-12 12:05:10 -05:00

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);
}