From 7acd6ab4386c6d978afe0de755fe74945b6f895e Mon Sep 17 00:00:00 2001 From: Kamil Wyszomierski Date: Fri, 2 Aug 2024 16:32:11 +0200 Subject: [PATCH] Remove enum and namespace name collision --- Sources/Difference.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/Difference.swift b/Sources/Difference.swift index 9027b03..2db45b3 100644 --- a/Sources/Difference.swift +++ b/Sources/Difference.swift @@ -8,7 +8,7 @@ import Foundation -public typealias IndentationType = Difference.IndentationType +public typealias IndentationType = Diff.IndentationType public struct DifferenceNameLabels { let expected: String @@ -251,7 +251,7 @@ private struct Differ { } } -public enum Difference { +public enum Diff { /// Styling of the diff indentation. /// `pipe` example: /// address: @@ -383,7 +383,7 @@ fileprivate extension Mirror { public func diff( _ expected: T, _ received: T, - indentationType: Difference.IndentationType = .pipe, + indentationType: Diff.IndentationType = .pipe, skipPrintingOnDiffCount: Bool = false, nameLabels: DifferenceNameLabels = .expectation ) -> [String] { @@ -403,7 +403,7 @@ public func diff( public func diffLines( _ expected: T, _ received: T, - indentationType: Difference.IndentationType = .pipe, + indentationType: Diff.IndentationType = .pipe, skipPrintingOnDiffCount: Bool = false, nameLabels: DifferenceNameLabels = .expectation ) -> [Line] { @@ -421,7 +421,7 @@ public func diffLines( public func dumpDiff( _ expected: T, _ received: T, - indentationType: Difference.IndentationType = .pipe, + indentationType: Diff.IndentationType = .pipe, skipPrintingOnDiffCount: Bool = false ) { // skip equal @@ -448,7 +448,7 @@ public func dumpDiff( public func dumpDiff( _ expected: T, _ received: T, - indentationType: Difference.IndentationType = .pipe, + indentationType: Diff.IndentationType = .pipe, skipPrintingOnDiffCount: Bool = false ) { diff(