Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
1234567891011121314151617import Foundationimport ParcelCoreimport ParcelEngineimport ParcelIPCimport ParcelUIimport 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") } }}