Closed p2635 closed 1 year ago
accuracy is not part of XCTAssert, use XCTAssertEqual.
accuracy
XCTAssert
XCTAssertEqual
This will throw an error.
func testLocationShouldBeCreatedFromLatitudeAndLongitudeProperties() { XCTAssert(subject.location.latitude == 35.6583, accuracy: 0.00001) XCTAssert(subject.location.longitude == 139.773, accuracy: 0.00001) }
func testLocationShouldBeCreatedFromLatitudeAndLongitudeProperties() { XCTAssertEqual(subject.location.latitude, 35.6583, accuracy: 0.00001) XCTAssertEqual(subject.location.longitude, 139.773, accuracy: 0.00001) }
accuracy
is not part ofXCTAssert
, useXCTAssertEqual
.This will throw an error.