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