Bläddra i källkod

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 år sedan
förälder
incheckning
1faf00c9ef
1 ändrade filer med 2 tillägg och 6 borttagningar
  1. 2 6
      Tests/FMDatabaseTests.m

+ 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