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); \
XCTAssertEqualObjects(error.domain, expectedError.domain); \
XCTAssertEqual(error.code, expectedError.code); \
XCTAssertNotEqual( \
[error.localizedDescription rangeOfString:expectedError.localizedDescription].location, \
NSNotFound)
XCTAssertEqualObjects( error.localizedDescription, expectedError.localizedDescription)
#define AssertEqualGestures(gesture, expectedGesture, handIndex, gestureIndex) \
XCTAssertEqual(gesture.index, kGestureExpectedIndex, @"hand index = %d gesture index j = %d", \