Skip to content

Commit

Permalink
Merge pull request #37 from Filozoff/fix/name-collision
Browse files Browse the repository at this point in the history
Remove enum and namespace name collision
  • Loading branch information
krzysztofzablocki authored Aug 5, 2024
2 parents dfc9d12 + 7acd6ab commit 7eb73c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/Difference.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

public typealias IndentationType = Difference.IndentationType
public typealias IndentationType = Diff.IndentationType

public struct DifferenceNameLabels {
let expected: String
Expand Down Expand Up @@ -251,7 +251,7 @@ private struct Differ {
}
}

public enum Difference {
public enum Diff {
/// Styling of the diff indentation.
/// `pipe` example:
/// address:
Expand Down Expand Up @@ -383,7 +383,7 @@ fileprivate extension Mirror {
public func diff<T>(
_ expected: T,
_ received: T,
indentationType: Difference.IndentationType = .pipe,
indentationType: Diff.IndentationType = .pipe,
skipPrintingOnDiffCount: Bool = false,
nameLabels: DifferenceNameLabels = .expectation
) -> [String] {
Expand All @@ -403,7 +403,7 @@ public func diff<T>(
public func diffLines<T>(
_ expected: T,
_ received: T,
indentationType: Difference.IndentationType = .pipe,
indentationType: Diff.IndentationType = .pipe,
skipPrintingOnDiffCount: Bool = false,
nameLabels: DifferenceNameLabels = .expectation
) -> [Line] {
Expand All @@ -421,7 +421,7 @@ public func diffLines<T>(
public func dumpDiff<T: Equatable>(
_ expected: T,
_ received: T,
indentationType: Difference.IndentationType = .pipe,
indentationType: Diff.IndentationType = .pipe,
skipPrintingOnDiffCount: Bool = false
) {
// skip equal
Expand All @@ -448,7 +448,7 @@ public func dumpDiff<T: Equatable>(
public func dumpDiff<T>(
_ expected: T,
_ received: T,
indentationType: Difference.IndentationType = .pipe,
indentationType: Diff.IndentationType = .pipe,
skipPrintingOnDiffCount: Bool = false
) {
diff(
Expand Down

0 comments on commit 7eb73c5

Please sign in to comment.