Skip to content

Commit

Permalink
Use hashtag string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolasstuchlik committed Aug 15, 2024
1 parent a52eca4 commit b4ddf5a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Tests/EnumIdentableTests/EnumIdentableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class EnumIdentableTests: XCTestCase {
"""
,
expandedSource:
"""
#"""
enum TestEnum {
case one
case two
Expand Down Expand Up @@ -61,7 +61,7 @@ final class EnumIdentableTests: XCTestCase {
lhs.id == rhs.id
}
}
"""
"""#
,
macros: testMacros
)
Expand All @@ -81,7 +81,7 @@ final class EnumIdentableTests: XCTestCase {
"""
,
expandedSource:
"""
#"""
enum TestEnum {
case one(String)
Expand All @@ -108,7 +108,7 @@ final class EnumIdentableTests: XCTestCase {
lhs.id == rhs.id
}
}
"""
"""#
,
macros: testMacros
)
Expand All @@ -128,7 +128,7 @@ final class EnumIdentableTests: XCTestCase {
"""
,
expandedSource:
"""
#"""
enum TestEnum {
case one, two, three
Expand Down Expand Up @@ -161,7 +161,7 @@ final class EnumIdentableTests: XCTestCase {
lhs.id == rhs.id
}
}
"""
"""#
,
macros: testMacros
)
Expand All @@ -184,7 +184,7 @@ final class EnumIdentableTests: XCTestCase {
"""
,
expandedSource:
"""
#"""
enum TestEnum {
case one(id: String)
case two(model: String)
Expand All @@ -199,13 +199,13 @@ final class EnumIdentableTests: XCTestCase {
var rawValue: String {
switch self {
case let .one(id):
"one-\\(id)"
"one-\(id)"
case .two:
"two"
case .three:
"three"
case let .four(modelId):
"four-\\(modelId)"
"four-\(modelId)"
}
}
}
Expand Down Expand Up @@ -235,7 +235,7 @@ final class EnumIdentableTests: XCTestCase {
lhs.id == rhs.id
}
}
"""
"""#
,
macros: testMacros
)
Expand All @@ -255,7 +255,7 @@ final class EnumIdentableTests: XCTestCase {
"""
,
expandedSource:
"""
#"""
enum Destination: Hashable, Identifiable {
case destination(id: Int, a: String)
Expand All @@ -264,7 +264,7 @@ final class EnumIdentableTests: XCTestCase {
var rawValue: String {
switch self {
case let .destination(id):
"destination-\\(id)"
"destination-\(id)"
}
}
}
Expand All @@ -288,7 +288,7 @@ final class EnumIdentableTests: XCTestCase {
lhs.id == rhs.id
}
}
"""
"""#
,
macros: testMacros
)
Expand Down

0 comments on commit b4ddf5a

Please sign in to comment.