import ParcelIPC import Testing @testable import prcl @Suite struct MemoryCLITests { @Test(arguments: ["inspect", "save", "reset"]) func memoryVerbsUseEngineRunPath(action: String) throws { #expect(try CLIParsing.parse(["memory", action, "--json"]) == .engine("memory", args: [action], json: true)) } @Test func memoryDefaultsToInspection() throws { #expect(try CLIParsing.parse(["memory"]) == .engine("memory", args: ["inspect"], json: false)) } @Test(arguments: [["memory", "unknown"], ["memory", "reset", "extra"]]) func invalidArgumentsAreRejected(arguments: [String]) { #expect(throws: (any Error).self) { try CLIParsing.parse(arguments) } } }