Skip to content

Commit e7c3c34

Browse files
adjust position markers in tests
1 parent fe3c99b commit e7c3c34

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Tests/SourceKitLSPTests/DoccDocumentationTests.swift

+12-12
Original file line numberDiff line numberDiff line change
@@ -508,31 +508,31 @@ final class DoccDocumentationTests: XCTestCase {
508508
}
509509
""",
510510
"MyLibrary/MyLibrary.docc/Module.md": """
511-
1️⃣# ``MyLibrary``
511+
4️⃣# ``MyLibrary``
512512
""",
513513
"MyLibrary/MyLibrary.docc/foo().md": """
514-
1️⃣# ``MyLibrary/foo()``
514+
5️⃣# ``MyLibrary/foo()``
515515
516516
# Additional information for foo()
517517
518518
This will be appended to the end of foo()'s documentation page
519519
""",
520520
"MyLibrary/MyLibrary.docc/bar().md": """
521-
1️⃣# ``MyLibrary/bar()``
521+
6️⃣# ``MyLibrary/bar()``
522522
523523
# Additional information for bar()
524524
525525
This will be appended to the end of bar()'s documentation page
526526
""",
527527
"MyLibrary/MyLibrary.docc/Foo.bar.md": """
528-
1️⃣# ``MyLibrary/Foo/bar``
528+
7️⃣# ``MyLibrary/Foo/bar``
529529
530530
# Additional information for Foo.bar
531531
532532
This will be appended to the end of Foo.bar's documentation page
533533
""",
534534
"MyLibrary/MyLibrary.docc/SymbolNotFound.md": """
535-
1️⃣# ``MyLibrary/thisIsNotAValidSymbol``
535+
8️⃣# ``MyLibrary/thisIsNotAValidSymbol``
536536
""",
537537
],
538538
enableBackgroundIndexing: true
@@ -549,33 +549,33 @@ final class DoccDocumentationTests: XCTestCase {
549549
try await renderDocumentation(
550550
fileName: "Module.md",
551551
project: project,
552-
expectedResponses: ["1️⃣": .renderNode(kind: .symbol, path: "MyLibrary")]
552+
expectedResponses: ["4️⃣": .renderNode(kind: .symbol, path: "MyLibrary")]
553553
)
554554
try await renderDocumentation(
555555
fileName: "foo().md",
556556
project: project,
557557
expectedResponses: [
558-
"1️⃣": .renderNode(kind: .symbol, path: "MyLibrary/foo()", containing: "Documentation for foo()")
558+
"5️⃣": .renderNode(kind: .symbol, path: "MyLibrary/foo()", containing: "Documentation for foo()")
559559
]
560560
)
561561
try await renderDocumentation(
562562
fileName: "bar().md",
563563
project: project,
564564
expectedResponses: [
565-
"1️⃣": .renderNode(kind: .symbol, path: "MyLibrary/bar()", containing: "Documentation for bar()")
565+
"6️⃣": .renderNode(kind: .symbol, path: "MyLibrary/bar()", containing: "Documentation for bar()")
566566
]
567567
)
568568
try await renderDocumentation(
569569
fileName: "Foo.bar.md",
570570
project: project,
571571
expectedResponses: [
572-
"1️⃣": .renderNode(kind: .symbol, path: "MyLibrary/Foo/bar", containing: "Documentation for Foo.bar")
572+
"7️⃣": .renderNode(kind: .symbol, path: "MyLibrary/Foo/bar", containing: "Documentation for Foo.bar")
573573
]
574574
)
575575
try await renderDocumentation(
576576
fileName: "SymbolNotFound.md",
577577
project: project,
578-
expectedResponses: ["1️⃣": .error(.symbolNotFound("MyLibrary/thisIsNotAValidSymbol"))]
578+
expectedResponses: ["8️⃣": .error(.symbolNotFound("MyLibrary/thisIsNotAValidSymbol"))]
579579
)
580580
}
581581

@@ -603,7 +603,7 @@ final class DoccDocumentationTests: XCTestCase {
603603
}
604604
""",
605605
"MyLibrary/MyLibrary.docc/Color.md": """
606-
1️⃣# ``MyLibrary/Foo/Color-swift.enum``
606+
2️⃣# ``MyLibrary/Foo/Color-swift.enum``
607607
608608
# Additional information for the Color enum
609609
@@ -627,7 +627,7 @@ final class DoccDocumentationTests: XCTestCase {
627627
fileName: "Color.md",
628628
project: project,
629629
expectedResponses: [
630-
"1️⃣": .renderNode(kind: .symbol, path: "MyLibrary/Foo/Color", containing: "The color of Foo")
630+
"2️⃣": .renderNode(kind: .symbol, path: "MyLibrary/Foo/Color", containing: "The color of Foo")
631631
]
632632
)
633633
}

0 commit comments

Comments
 (0)