From de5ee8f0d0c01976b67c9d1173de60e5c6455488 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 13 Jun 2023 13:26:39 -0400 Subject: [PATCH] Mildly extend test. --- OSBindings/Mac/Clock SignalTests/DispatcherTests.mm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/DispatcherTests.mm b/OSBindings/Mac/Clock SignalTests/DispatcherTests.mm index af22e1ab0..ddf21b2be 100644 --- a/OSBindings/Mac/Clock SignalTests/DispatcherTests.mm +++ b/OSBindings/Mac/Clock SignalTests/DispatcherTests.mm @@ -105,16 +105,19 @@ struct RangeTarget { Dispatcher::dispatch(target, 11, 75); Dispatcher::dispatch(target, 75, 100); - Dispatcher::dispatch(target, 100, 200); + Dispatcher::dispatch(target, 100, 199); + Dispatcher::dispatch(target, 199, 200); + Dispatcher::dispatch(target, 200, 400); // Out of range. - XCTAssertEqual(target.events.size(), 12); + XCTAssertEqual(target.events.size(), 13); XCTAssert(target.events[5] == RangeTarget::Event(RangeTarget::Event::Type::Advance, RangeType::Sync, 9)); XCTAssert(target.events[6] == RangeTarget::Event(RangeTarget::Event::Type::End, RangeType::Sync, 20)); XCTAssert(target.events[7] == RangeTarget::Event(RangeTarget::Event::Type::Begin, RangeType::Border, 20)); XCTAssert(target.events[8] == RangeTarget::Event(RangeTarget::Event::Type::Advance, RangeType::Border, 55)); XCTAssert(target.events[9] == RangeTarget::Event(RangeTarget::Event::Type::Advance, RangeType::Border, 25)); - XCTAssert(target.events[10] == RangeTarget::Event(RangeTarget::Event::Type::Advance, RangeType::Border, 100)); - XCTAssert(target.events[11] == RangeTarget::Event(RangeTarget::Event::Type::End, RangeType::Border, 200)); + XCTAssert(target.events[10] == RangeTarget::Event(RangeTarget::Event::Type::Advance, RangeType::Border, 99)); + XCTAssert(target.events[11] == RangeTarget::Event(RangeTarget::Event::Type::Advance, RangeType::Border, 1)); + XCTAssert(target.events[12] == RangeTarget::Event(RangeTarget::Event::Type::End, RangeType::Border, 200)); } @end