Files
Stephen Celis 3e830b575a Swift Testing support (#3229)
* wip

* wip

* Update Testing.md

* wip

* wip

* wip

* wip

* wip:

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* disable library evolution

* bump

* wip

---------

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2024-07-22 17:52:04 -07:00

38 lines
865 B
Swift

public struct _HashableStaticString: RawRepresentable {
public let rawValue: StaticString
public init(rawValue: StaticString) {
self.rawValue = rawValue
}
}
extension _HashableStaticString: ExpressibleByStringLiteral {
public init(stringLiteral value: StaticString) {
self.init(rawValue: value)
}
}
extension _HashableStaticString: CustomStringConvertible {
public var description: String {
rawValue.description
}
}
extension _HashableStaticString: CustomDebugStringConvertible {
public var debugDescription: String {
rawValue.debugDescription
}
}
extension _HashableStaticString: Equatable {
public static func == (lhs: Self, rhs: Self) -> Bool {
lhs.description == rhs.description
}
}
extension _HashableStaticString: Hashable {
public func hash(into hasher: inout Hasher) {
hasher.combine(description)
}
}