Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
123456789101112131415161718192021import ParcelIPCimport Testing
@testable import ParcelApp
@Suite("Fixture keyboard stimulus timestamp")struct AppFixtureTimestampTests { @Test func acceptedReplyIncludesExactTimestamp() throws { #expect( try AppFixtureKeyInput.reply(timestamp: 123_456_789) == .object([ "accepted": .bool(true), "event_timestamp_ns": .integer(123_456_789), ])) }
@Test(arguments: [UInt64(0), UInt64.max]) func unavailableOrUnrepresentableTimestampFails(_ timestamp: UInt64) { #expect(throws: IPCError.self) { try AppFixtureKeyInput.reply(timestamp: timestamp) } }}