From dac3db52c5b5d7773d4b7aca1da2b1dbefde5ef6 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 22 Jan 2013 18:52:31 +0000 Subject: PostgresKit: Fix tests, take 2. --- Frameworks/PostgresKit/Tests/PGDataTypeTests.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Frameworks/PostgresKit') diff --git a/Frameworks/PostgresKit/Tests/PGDataTypeTests.m b/Frameworks/PostgresKit/Tests/PGDataTypeTests.m index a720856b..4e9d513a 100644 --- a/Frameworks/PostgresKit/Tests/PGDataTypeTests.m +++ b/Frameworks/PostgresKit/Tests/PGDataTypeTests.m @@ -70,8 +70,8 @@ static NSUInteger PGTestDatabasePort = 5432; [self _addTestForField:@"bool" withExpectedResult:[NSNumber numberWithInteger:1] connection:connection toTestSuite:testSuite]; [self _addTestForField:@"float" withExpectedResult:[NSNumber numberWithFloat:12345.678] connection:connection toTestSuite:testSuite]; [self _addTestForField:@"numeric" withExpectedResult:[NSNumber numberWithDouble:12345.678] connection:connection toTestSuite:testSuite]; - [self _addTestForField:@"char" withExpectedResult:@"CHAR" connection:connection toTestSuite:testSuite]; - [self _addTestForField:@"varchar" withExpectedResult:@"VARCHAR" connection:connection toTestSuite:testSuite]; + [self _addTestForField:@"char" withExpectedResult:[NSString stringWithString:@"CHAR"] connection:connection toTestSuite:testSuite]; + [self _addTestForField:@"varchar" withExpectedResult:[NSString stringWithString:@"VARCHAR"] connection:connection toTestSuite:testSuite]; //[self _addTestForField:@"date" withExpectedResult: connection:connection toTestSuite:testSuite]; //[self _addTestForField:@"time" withExpectedResult: connection:connection toTestSuite:testSuite]; //[self _addTestForField:@"timetz" withExpectedResult: connection:connection toTestSuite:testSuite]; @@ -114,7 +114,7 @@ static NSUInteger PGTestDatabasePort = 5432; - (void)testResultValueIsNotNull { - STAssertNotNil(_result, @""); + STAssertNotNil(_result, nil); } - (void)testResultIsOfCorrectType @@ -124,7 +124,7 @@ static NSUInteger PGTestDatabasePort = 5432; - (void)testResultHasCorrectValue { - STAssertEqualObjects(_result, _expectedResult, @""); + STAssertEqualObjects(_result, _expectedResult, nil); } #pragma mark -r -- cgit v1.2.3