Skip to content

Commit 093e598

Browse files
committed
Edit markups
1 parent dd6bbf9 commit 093e598

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

URLPatternExample/URLPatternExampleTests/URLPatternExampleTests.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,14 @@ struct URLPatternExampleTests {
221221
"こんにちは",
222222
"☺️👍"
223223
])
224+
224225
func paresPost_success_with_unicode(value: String) async throws {
225226
let url = try #require(URL(string: "/posts/\(value)"))
226227
let deepLink = DeepLinkMock(url: url)
227228
#expect(deepLink == .post(postId: value))
228229
}
229230

230-
// MARK: - Unicode Tests
231+
// MARK: - Priority Tests
231232
@URLPattern
232233
enum PriorityTest: Equatable {
233234
@URLPath("/{a}/{b}")
@@ -237,11 +238,13 @@ struct URLPatternExampleTests {
237238
case post(postId: Int)
238239
}
239240

240-
@Test func checkPriorityCases() async throws {
241+
@Test("Test Scope")
242+
func checkPriorityCases() async throws {
241243
let url = try #require(URL(string: "/post/1"))
242244
#expect(PriorityTest(url: url) == .all(a: "post", b: "1"))
243245
}
244246

247+
// MARK: - Scope Tests
245248
@URLPattern
246249
enum ScopeTest {
247250
@URLPath("/")
@@ -277,6 +280,7 @@ struct URLPatternExampleTests {
277280
@URLPath("/{a}/{b}/{c}/{d}/{e}/{f}/{g}/{h}/{i}/{j}")
278281
case ten(a: String, b: String, c: String, d: String, e: String, f: String, g: String, h: String, i: String, j: String)
279282
}
283+
280284
@Test("Test scope", arguments: Array(0...20))
281285
func checkScope(num: Int) async throws {
282286
let url = try #require(URL(string: "/" + (0..<num).map { String($0) }.joined(separator: "/")))

0 commit comments

Comments
 (0)