Skip to content

Commit 241b43f

Browse files
committed
wip
1 parent 0007965 commit 241b43f

File tree

2 files changed

+5
-28
lines changed

2 files changed

+5
-28
lines changed

Tests/CustomDumpTests/DiffTests.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -480,19 +480,6 @@ final class DiffTests: XCTestCase {
480480
+ NestedDate(date: Date(1970-01-01T00:00:01.000Z))
481481
"""
482482
)
483-
#else
484-
XCTAssertNoDifference(
485-
diff(
486-
NestedDate(date: Date(timeIntervalSince1970: 0)),
487-
NestedDate(date: Date(timeIntervalSince1970: 1))
488-
),
489-
"""
490-
NestedDate(
491-
- date: Date(1970-01-01T00:00:00.000Z)
492-
+ date: Date(1970-01-01T00:00:01.000Z)
493-
)
494-
"""
495-
)
496483
#endif
497484
}
498485

Tests/CustomDumpTests/DumpTests.swift

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -761,30 +761,20 @@ final class DumpTests: XCTestCase {
761761
"""
762762
)
763763

764-
dump = ""
765-
customDump(
766-
NestedDate(date: Date(timeIntervalSince1970: 0)),
767-
to: &dump
768-
)
769764
#if compiler(>=5.4)
770-
XCTAssertNoDifference(
771-
dump,
772-
"""
773-
NestedDate(date: Date(1970-01-01T00:00:00.000Z))
774-
"""
765+
dump = ""
766+
customDump(
767+
NestedDate(date: Date(timeIntervalSince1970: 0)),
768+
to: &dump
775769
)
776-
#else
777770
XCTAssertNoDifference(
778771
dump,
779772
"""
780-
NestedDate(
781-
date: Date(1970-01-01T00:00:00.000Z)
782-
)
773+
NestedDate(date: Date(1970-01-01T00:00:00.000Z))
783774
"""
784775
)
785776
#endif
786777

787-
788778
dump = ""
789779
customDump(
790780
[1, 2, 3] as NSArray,

0 commit comments

Comments
 (0)