diff options
author | Gil <mcg@google.com> | 2018-02-22 10:48:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 10:48:06 -0800 |
commit | f7d9f29d53d49bdc1bf8bbadce7cf1df43fa7e1c (patch) | |
tree | 55ecb8aaee6b40b5fa5cc87e27a2b55385ff07cf /Firestore/Example/Tests/API | |
parent | b5c60ad91d675a263c22fb79dff9d1cda4ec4b91 (diff) |
Fix lint warnings (#840)
Diffstat (limited to 'Firestore/Example/Tests/API')
-rw-r--r-- | Firestore/Example/Tests/API/FIRTimestampTest.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Firestore/Example/Tests/API/FIRTimestampTest.m b/Firestore/Example/Tests/API/FIRTimestampTest.m index 070da96..98ec804 100644 --- a/Firestore/Example/Tests/API/FIRTimestampTest.m +++ b/Firestore/Example/Tests/API/FIRTimestampTest.m @@ -47,12 +47,12 @@ NSDate *TestDate(int year, int month, int day, int hour, int minute, int second) FIRTimestamp *actual = [FIRTimestamp timestampWithDate:input]; static const int64_t kSecondsFromEpochToReferenceDate = 978307200; XCTAssertEqual(kSecondsFromEpochToReferenceDate + 1, actual.seconds); - XCTAssertEqual(500000000, actual.nanoseconds); + XCTAssertEqual(actual.nanoseconds, 500000000); FIRTimestamp *expected = [[FIRTimestamp alloc] initWithSeconds:(kSecondsFromEpochToReferenceDate + 1) nanoseconds:500000000]; - XCTAssertEqualObjects(expected, actual); + XCTAssertEqualObjects(actual, expected); } - (void)testSO8601String { @@ -92,8 +92,8 @@ NSDate *TestDate(int year, int month, int day, int hour, int minute, int second) [[FIRTimestamp alloc] initWithSeconds:12346 nanoseconds:0], ]; for (int i = 0; i < timestamps.count - 1; ++i) { - XCTAssertEqual(NSOrderedAscending, [timestamps[i] compare:timestamps[i + 1]]); - XCTAssertEqual(NSOrderedDescending, [timestamps[i + 1] compare:timestamps[i]]); + XCTAssertEqual([timestamps[i] compare:timestamps[i + 1]], NSOrderedAscending); + XCTAssertEqual([timestamps[i + 1] compare:timestamps[i]], NSOrderedDescending); } } |