Skip to content

Commit

Permalink
Fix #112: Replace STAssert* with XCTAssert* macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Tito Ciuro committed Apr 21, 2015
1 parent 5682f60 commit 71e330a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Classes/Public/NSFNanoSortDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
// Perform the search
NSArray *searchResults = [search searchObjectsWithReturnType:NSFReturnObjects error:nil];
STAssertTrue ([searchResults count] == 5, @"Expected to find five objects.");
STAssertTrue ([[[[searchResults objectAtIndex:0]info]objectForKey:@"City"]isEqualToString:@"Barcelona"], @"Expected to find Barcelona.");
XCTAssertTrue ([searchResults count] == 5, @"Expected to find five objects.");
XCTAssertTrue ([[[[searchResults objectAtIndex:0]info]objectForKey:@"City"]isEqualToString:@"Barcelona"], @"Expected to find Barcelona.");
for (NSFNanoObject *object in searchResults) {
NSLog(@"%@", [[object info]objectForKey:@"City"]);
Expand Down
4 changes: 2 additions & 2 deletions Tests/UnitTests/NanoStore/NanoStoreObjectTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ - (void)testObjectWithSubscriptAccessor
object[@"foo"] = @"bar";
NSDictionary *info = object.info;

STAssertTrue ((nil != info) && ([info count] == 1) && ([[info objectForKey:@"foo"]isEqualToString:@"bar"]), @"Expected setObject:forKey: to work.");
XCTAssertTrue ((nil != info) && ([info count] == 1) && ([[info objectForKey:@"foo"]isEqualToString:@"bar"]), @"Expected setObject:forKey: to work.");

STAssertEqualObjects(object[@"foo"], @"bar", @"Can access with keyed subscript");
XCTAssertEqualObjects(object[@"foo"], @"bar", @"Can access with keyed subscript");
}

- (void)testObjectRemoveObjectForKeyNonEmptyObject
Expand Down

0 comments on commit 71e330a

Please sign in to comment.