Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Mar 10, 2024
1 parent 5ad01b1 commit 6de5f92
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions Tests/CustomDumpTests/DiffTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1304,41 +1304,6 @@ final class DiffTests: XCTestCase {
"""
)
}

func testDiffableObject_Advanced() {
class DiffableObject: _CustomDiffObject {
var _customDiffValues: (Any, Any) {
("before", "after")
}
}

struct DiffableObjects {
var obj1: DiffableObject
var obj2: DiffableObject
}

let obj = DiffableObject()
XCTAssertNoDifference(
diff(obj, obj),
"""
- #1 "before"
+ #1 "after"
"""
)

let bar = DiffableObjects(obj1: obj, obj2: obj)
XCTAssertNoDifference(
diff(bar, bar),
"""
DiffTests.DiffableObjects(
- obj1: #1 "before",
+ obj1: #1 "after",
- obj2: #1 String(↩︎)
+ obj2: #1 String(↩︎)
)
"""
)
}
}

private struct Stack<State: Equatable>: CustomDumpReflectable, Equatable {
Expand Down

0 comments on commit 6de5f92

Please sign in to comment.