import Foundation import ParcelCore import ParcelEngine import ParcelIPC import ParcelUI import Testing @Suite struct InspectorCommandParserTests { @Test func explicitWindowCommandRequiresAPositiveWindowID() throws { #expect(try EngineCommandParser.parse("tile-window", args: ["7"]) == .tileWindow(WindowID(rawValue: 7))) for value in ["0", "-1", "4294967296", "window"] { #expect(throws: IPCError.self) { try EngineCommandParser.parse("tile-window", args: [value]) } } #expect(throws: IPCError.self) { try EngineCommandParser.parse("tile-window") } } }