             XCTAssertEqual(error.location, 1)
             XCTAssertEqual(error.failedComponent, .major)
 
-            // TODO: expect partial result in error
-        }
-    }
-
+            let result = error.result
+            XCTAssertEqual(result.major, 1)
+            XCTAssertNil(result.minor)
+            XCTAssertNil(result.patch)
+            XCTAssertNil(result.prereleaseIdentifiers)
+            XCTAssertNil(result.buildMetadataIdentifiers)
+        }
+    }
 
     func testParserWithMalformedMinorVersionA() {
         let parser = SemanticVersionParser("1.-2.3")

            XCTAssertEqual(error.location, 5)
            XCTAssertEqual(error.failedComponent, .patch)

            // TODO: expect partial result in error
        }
    }


            XCTAssertEqual(error.location, 6)
            XCTAssertEqual(error.failedComponent, .prereleaseIdentifiers)

            let result = error.result
            XCTAssertEqual(result.major, 1)
            XCTAssertEqual(result.minor, 4)
            XCTAssertEqual(result.patch, 3)
            XCTAssertNotNil(result.prereleaseIdentifiers)
            XCTAssertEqual(result.prereleaseIdentifiers!, [])
            XCTAssertNil(result.buildMetadataIdentifiers)
        }
    }

