         XCTAssertEqual(ranges.first, expectedRange)
     }
     
-    func testParagraphRanges() {
+    /// Tests that `paragraphRanges(intersecting:)` with a zero-length input paragraph range
+    /// returns the correct `ParagraphRange`.
+    ///
+    func testParagraphRangesWorksWithAZeroLengthInputRange() {
         let attributedString = NSAttributedString(string: "Paragraph 1\nParagraph 2\n")
         let range = NSRange(location: 0, length: 0)
         let expectedRangeWithoutSeparator = NSRange(location: 0, length: 11)

        XCTAssertEqual(ranges.first, expectedRange)
    }
    
    func testParagraphRangesWithSeparator() {
        let attributedString = NSAttributedString(string: "Paragraph 1\nParagraph 2\n")
        let range = NSRange(location: 0, length: 0)
        let expectedRange = NSRange(location: 0, length: 12)


class NSAttributedStringParagraphRangeTests: XCTestCase {
    
    /// Tests that `paragraphRanges(intersecting:includeParagraphSeparator:)` with a zero-length
    /// input paragraph range returns the correct substring paragraph range.
    ///
    func testParagraphRangesWithoutSeparatorWorksWithAZeroLengthInputRange() {
        let attributedString = NSAttributedString(string: "Paragraph 1\nParagraph 2\n")
        let range = NSRange(location: 0, length: 0)
        let expectedRange = NSRange(location: 0, length: 11)
