-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add isEqual() and port DocumentReference array test. #380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mikelehen
commented
Oct 16, 2017
- Ports the test for the fix I made for Android for DocumentReference objects in arrays (bug not present in iOS).
- Implements isEqual on FIRQuery and FIRDocumentReference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
@@ -110,6 +110,32 @@ - (instancetype)initWithKey:(FSTDocumentKey *)key firestore:(FIRFirestore *)fire | |||
return self; | |||
} | |||
|
|||
#pragma mark - NSObject Methods | |||
|
|||
- (BOOL)isEqual:(id)other { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nullable id
return [self isEqualToReference:other]; | ||
} | ||
|
||
- (BOOL)isEqualToReference:(FIRDocumentReference *)reference { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nullable FIRDocumentReference *
Firestore/Source/API/FIRQuery.m
Outdated
@@ -103,6 +103,31 @@ - (instancetype)initWithQuery:(FSTQuery *)query firestore:(FIRFirestore *)firest | |||
return self; | |||
} | |||
|
|||
#pragma mark - NSObject Methods | |||
|
|||
- (BOOL)isEqual:(id)other { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nullable here and in isEqualToQuery
* Ports the test for the fix I made for Android for DocumentReference objects in arrays (bug not present in iOS). * Implements isEqual on FIRQuery and FIRDocumentReference.