Changeset 11870
- Timestamp:
- 05/18/08 14:01:44 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-c/HatebuCoreData/HatenaBookmarkTest.m
r11865 r11870 51 51 STAssertNotNil(entry, @"bad entry", nil); 52 52 53 return [[[entry elementsForName: @"id"] objectAtIndex:0] stringValue]; 53 // extract bookmark eid 54 NSString *combinedId = [[[entry elementsForName: @"id"] objectAtIndex:0] stringValue]; 55 NSRange lastHyphen = [combinedId rangeOfString:@"-" options:NSBackwardsSearch]; 56 NSString *idStr = [combinedId substringFromIndex:lastHyphen.location+1]; 57 STAssertNotNil(idStr, @"bad eid", nil); 58 return idStr; 54 59 } 55 60 56 61 -(void) testLatest { 57 62 NSString *latest = [self latestBookmark]; 58 NSLog(@"latest entry id : %@", latest);63 //NSLog(@"latest entry id : %@", latest); 59 64 STAssertNotNil(latest, @"latest", nil); 60 65 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)