         XCTAssertEqual(expectedCaret, result.formattedText.caretPosition)
         XCTAssertEqual(expectedValue, result.extractedValue)
         
-        XCTAssertEqual(8, result.affinity)
+        XCTAssertEqual(6, result.affinity)
     }
     
     func testApply_1111_StartIndex_returns_11dot11_StartIndex() {

        XCTAssertEqual(expectedCaret, result.formattedText.caretPosition)
        XCTAssertEqual(expectedValue, result.extractedValue)
        
        XCTAssertEqual(4, result.affinity)
    }
    
    func testApply_123456_returns_12dot34dot56() {

        XCTAssertEqual(expectedCaret, result.formattedText.caretPosition)
        XCTAssertEqual(expectedValue, result.extractedValue)
        
        XCTAssertEqual(0, result.affinity)
    }
    
    func testApply_abc1de111_returns_11dot11() {
