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 c10255c commit 5ad01b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
7 changes: 2 additions & 5 deletions Tests/CustomDumpTests/DiffTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1306,16 +1306,13 @@ final class DiffTests: XCTestCase {
}

func testDiffableObject_Advanced() {
class DiffableObject: _CustomDiffObject, Equatable {
class DiffableObject: _CustomDiffObject {
var _customDiffValues: (Any, Any) {
("before", "after")
}
static func == (lhs: DiffableObject, rhs: DiffableObject) -> Bool {
false
}
}

struct DiffableObjects: Equatable {
struct DiffableObjects {
var obj1: DiffableObject
var obj2: DiffableObject
}
Expand Down
15 changes: 6 additions & 9 deletions Tests/CustomDumpTests/DumpTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1360,21 +1360,18 @@ final class DumpTests: XCTestCase {
var email: String
}

class DiffableObject: _CustomDiffObject, Equatable {
class DiffableObject: _CustomDiffObject {
var _customDiffValues: (Any, Any) {
(Login(email: "[email protected]"), Login(email: "[email protected]"))
}
static func == (lhs: DiffableObject, rhs: DiffableObject) -> Bool {
false
}
}

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

struct DiffableObjectsParent: Equatable {
struct DiffableObjectsParent {
var objs1: DiffableObjects
var objs2: DiffableObjects
}
Expand Down Expand Up @@ -1426,7 +1423,7 @@ final class DumpTests: XCTestCase {
}

func testDiffableObject_Primitive() {
class DiffableObject: _CustomDiffObject, Equatable {
class DiffableObject: _CustomDiffObject {
var _customDiffValues: (Any, Any) {
("before", "after")
}
Expand All @@ -1435,12 +1432,12 @@ final class DumpTests: XCTestCase {
}
}

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

struct DiffableObjectsParent: Equatable {
struct DiffableObjectsParent {
var objs1: DiffableObjects
var objs2: DiffableObjects
}
Expand Down

0 comments on commit 5ad01b1

Please sign in to comment.