@@ -279,6 +279,10 @@ class DocumentationCuratorTests: XCTestCase {
279
279
### Extraneous list item content
280
280
- <doc:MyKit/MyClass>.
281
281
- <doc:MyKit/MyClass>  and *more* content...
282
+ - <doc:MyKit/MyClass> @Comment { We (unfortunately) expect a warning here because DocC doesn't support directives in the middle of a line. }
283
+ - <doc:MyKit/MyClass> <!-- This is a valid comment -->
284
+ - <doc:MyKit/MyClass> <!-- This is a valid comment --> but this is extra content :(
285
+ - <doc:MyKit/MyClass> This is extra content <!-- even if this is a valid comment -->
282
286
## See Also
283
287
- <doc:MyKit/MyClass>
284
288
- Blip blop!
@@ -324,11 +328,11 @@ class DocumentationCuratorTests: XCTestCase {
324
328
. filter ( { $0. diagnostic. identifier == " org.swift.docc.UnexpectedTaskGroupItem " } )
325
329
. compactMap ( { $0. possibleSolutions. first? . replacements. first? . range } )
326
330
. map ( { " \( $0. lowerBound. line) : \( $0. lowerBound. column) ..< \( $0. upperBound. line) : \( $0. upperBound. column) " } ) ,
327
- [ " 6:1..<6:13 " , " 9:1..<9:20 " , " 15 :1..<15 :13" , " 5:1..<5:13 " , " 8:1..<8:20 " , " 11:1..<11:13 " ]
331
+ [ " 6:1..<6:13 " , " 9:1..<9:20 " , " 19 :1..<19 :13" , " 5:1..<5:13 " , " 8:1..<8:20 " , " 11:1..<11:13 " ]
328
332
)
329
333
330
- // Verify the crawler emitted warnings for the 2 items with trailing content.
331
- XCTAssertEqual ( crawler. problems. filter ( { $0. diagnostic. identifier == " org.swift.docc.ExtraneousTaskGroupItemContent " } ) . count, 2 )
334
+ // Verify the crawler emitted warnings for the 5 items with trailing content.
335
+ XCTAssertEqual ( crawler. problems. filter ( { $0. diagnostic. identifier == " org.swift.docc.ExtraneousTaskGroupItemContent " } ) . count, 5 )
332
336
XCTAssertTrue ( crawler. problems
333
337
. filter ( { $0. diagnostic. identifier == " org.swift.docc.ExtraneousTaskGroupItemContent " } )
334
338
. compactMap ( { $0. diagnostic. source? . path } )
0 commit comments