@@ -279,6 +279,10 @@ class DocumentationCuratorTests: XCTestCase {
279279 ### Extraneous list item content
280280 - <doc:MyKit/MyClass>.
281281 - <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 -->
282286 ## See Also
283287 - <doc:MyKit/MyClass>
284288 - Blip blop!
@@ -324,11 +328,11 @@ class DocumentationCuratorTests: XCTestCase {
324328 . filter ( { $0. diagnostic. identifier == " org.swift.docc.UnexpectedTaskGroupItem " } )
325329 . compactMap ( { $0. possibleSolutions. first? . replacements. first? . range } )
326330 . 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 " ]
328332 )
329333
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 )
332336 XCTAssertTrue ( crawler. problems
333337 . filter ( { $0. diagnostic. identifier == " org.swift.docc.ExtraneousTaskGroupItemContent " } )
334338 . compactMap ( { $0. diagnostic. source? . path } )
0 commit comments