         XCTAssertEqual(expectedCaret, result.formattedText.caretPosition)
         XCTAssertEqual(expectedValue, result.extractedValue)
         
-        XCTAssertEqual(4, result.affinity)
+        XCTAssertEqual(3, result.affinity)
     }
 
     func testApply_abc1111_returns_11dot11() {

        XCTAssertEqual(expectedCaret, result.formattedText.caretPosition)
        XCTAssertEqual(expectedValue, result.extractedValue)
        
        XCTAssertEqual(8, result.affinity)
    }
    
    func testApplyAutocomplete_112233334_returns_11dot22dot3333() {

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