Update iOS Gesture Recognizer error assertion
This commit is contained in:
parent
77bb5e7202
commit
0c2a7bee09
|
@ -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", \
|
||||
|
|
Loading…
Reference in New Issue
Block a user