Skip to content

Commit 2ac9248

Browse files
committed
update test syntax
1 parent 7aa786a commit 2ac9248

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

Sources/SymbolGraphPartTests/Main.swift

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,20 @@ enum Main:TestMain, TestBattery
381381
(
382382
["Struct", "internal(_:)"],
383383
[
384-
.where("T", is: .conformer, to: .nominal(.init("s:SQ")!)),
385-
.where("T", is: .conformer, to: .nominal(.init("s:ST")!)),
384+
.where("T", is: .conformer, to: .init(
385+
spelling: "Equatable",
386+
nominal: "sSQ")),
387+
.where("T", is: .conformer, to: .init(
388+
spelling: "Sequence",
389+
nominal: "sST")),
386390
]
387391
),
388392
(
389393
["Protocol", "internal(_:)"],
390394
[
391-
.where("Self.T", is: .conformer, to: .nominal(.init("s:SQ")!)),
395+
.where("Self.T", is: .conformer, to: .init(
396+
spelling: "Equatable",
397+
nominal: "sSQ")),
392398
]
393399
),
394400
]
@@ -411,27 +417,39 @@ enum Main:TestMain, TestBattery
411417
(
412418
["Struct"],
413419
[
414-
.where("T", is: .conformer, to: .nominal(.init("s:SQ")!)),
415-
.where("T", is: .conformer, to: .nominal(.init("s:ST")!)),
420+
.where("T", is: .conformer, to: .init(
421+
spelling: "Equatable",
422+
nominal: "sSQ")),
423+
.where("T", is: .conformer, to: .init(
424+
spelling: "Sequence",
425+
nominal: "sST")),
416426
]
417427
),
418428
(
419429
["Struct", "external(_:)"],
420430
[
421-
.where("T", is: .conformer, to: .nominal(.init("s:SQ")!)),
422-
.where("T", is: .conformer, to: .nominal(.init("s:ST")!)),
431+
.where("T", is: .conformer, to: .init(
432+
spelling: "Equatable",
433+
nominal: "sSQ")),
434+
.where("T", is: .conformer, to: .init(
435+
spelling: "Sequence",
436+
nominal: "sST")),
423437
]
424438
),
425439
(
426440
["Protocol"],
427441
[
428-
.where("Self.T", is: .conformer, to: .nominal(.init("s:SQ")!)),
442+
.where("Self.T", is: .conformer, to: .init(
443+
spelling: "Equatable",
444+
nominal: "sSQ")),
429445
]
430446
),
431447
(
432448
["Protocol", "external(_:)"],
433449
[
434-
.where("Self.T", is: .conformer, to: .nominal(.init("s:SQ")!)),
450+
.where("Self.T", is: .conformer, to: .init(
451+
spelling: "Equatable",
452+
nominal: "sSQ")),
435453
]
436454
),
437455
]

0 commit comments

Comments
 (0)