Update iOS Gesture Recognizer error assertion

This commit is contained in:
Prianka Liz Kariat 2023-06-05 13:19:39 +05:30
parent 77bb5e7202
commit 0c2a7bee09

View File

@ -48,9 +48,7 @@ static const float kLandmarksErrorTolerance = 0.03f;
XCTAssertNotNil(error); \ XCTAssertNotNil(error); \
XCTAssertEqualObjects(error.domain, expectedError.domain); \ XCTAssertEqualObjects(error.domain, expectedError.domain); \
XCTAssertEqual(error.code, expectedError.code); \ XCTAssertEqual(error.code, expectedError.code); \
XCTAssertNotEqual( \ XCTAssertEqualObjects( error.localizedDescription, expectedError.localizedDescription)
[error.localizedDescription rangeOfString:expectedError.localizedDescription].location, \
NSNotFound)
#define AssertEqualGestures(gesture, expectedGesture, handIndex, gestureIndex) \ #define AssertEqualGestures(gesture, expectedGesture, handIndex, gestureIndex) \
XCTAssertEqual(gesture.index, kGestureExpectedIndex, @"hand index = %d gesture index j = %d", \ XCTAssertEqual(gesture.index, kGestureExpectedIndex, @"hand index = %d gesture index j = %d", \