From fd23f6aa83d6b9e8d5c60e8c5a0cb5c00bfaadf6 Mon Sep 17 00:00:00 2001 From: Gil Birman Date: Mon, 2 Dec 2024 19:43:54 -0600 Subject: [PATCH] swift-custom-dump: downgrade to v1.2.1 --- Package.resolved | 4 ++-- Package.swift | 2 +- WorkflowTesting/Sources/RenderTesterResult.swift | 14 +++++--------- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Package.resolved b/Package.resolved index f939a104..c9e1fe80 100644 --- a/Package.resolved +++ b/Package.resolved @@ -41,8 +41,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-custom-dump", "state" : { - "revision" : "82645ec760917961cfa08c9c0c7104a57a0fa4b1", - "version" : "1.3.3" + "revision" : "3ce83179e5f0c83ad54c305779c6b438e82aaf1d", + "version" : "1.2.1" } }, { diff --git a/Package.swift b/Package.swift index 7cab791a..f9e3bd5a 100644 --- a/Package.swift +++ b/Package.swift @@ -64,7 +64,7 @@ let package = Package( .package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.0.0"), .package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.4.0"), .package(url: "https://github.com/pointfreeco/swift-perception", from: "1.1.4"), - .package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.3.3"), + .package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.2.1"), ], targets: [ // MARK: Workflow diff --git a/WorkflowTesting/Sources/RenderTesterResult.swift b/WorkflowTesting/Sources/RenderTesterResult.swift index 1540bcc9..ab71c92e 100644 --- a/WorkflowTesting/Sources/RenderTesterResult.swift +++ b/WorkflowTesting/Sources/RenderTesterResult.swift @@ -130,22 +130,18 @@ extension RenderTesterResult where WorkflowType.State: Equatable { /// and is expected to mutate it to match the new state. @discardableResult public func assertStateModifications( - _ modifications: (inout WorkflowType.State) throws -> Void, - fileID: StaticString = #fileID, - filePath: StaticString = #filePath, + file: StaticString = #file, line: UInt = #line, - column: UInt = #column + _ modifications: (inout WorkflowType.State) throws -> Void ) rethrows -> RenderTesterResult { var initialState = initialState try modifications(&initialState) - expectNoDifference( + XCTAssertNoDifference( initialState, state, "Expected state does not match", - fileID: fileID, - filePath: filePath, - line: line, - column: column + file: file, + line: line ) return self }