Эх сурвалжийг харах

Fix -[FMDatabaseTests testApplicationID]

There were compile errors in this code because I just copy/pasted it from fmdb.m without making the changes for XCTest.  It wasn't causing problems for me because I am using a version of SQLite older than the preprocessor check.
Graham Dennis 12 жил өмнө
parent
commit
1faf00c9ef

+ 2 - 6
Tests/FMDatabaseTests.m

@@ -803,17 +803,13 @@ - (void)testApplicationID
     
     uint32_t rAppID = [db applicationID];
     
-    NSLog(@"rAppID: %d", rAppID);
-    
-    FMDBQuickCheck(rAppID == appID);
+    XCTAssertEqual(rAppID, appID);
     
     [db setApplicationIDString:@"acrn"];
     
     NSString *s = [db applicationIDString];
     
-    NSLog(@"s: '%@'", s);
-    
-    FMDBQuickCheck([s isEqualToString:@"acrn"]);
+    XCTAssertEqualObjects(s, @"acrn");
 }
 #endif