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