diff options
author | stuconnolly <stuart02@gmail.com> | 2013-01-22 18:52:31 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-01-22 18:52:31 +0000 |
commit | dac3db52c5b5d7773d4b7aca1da2b1dbefde5ef6 (patch) | |
tree | 5cf344881edf785fc714a637865b05a626326a9c /Frameworks | |
parent | e5dcf54d2608f25028484e4a89b9c7df5cd63679 (diff) | |
download | sequelpro-dac3db52c5b5d7773d4b7aca1da2b1dbefde5ef6.tar.gz sequelpro-dac3db52c5b5d7773d4b7aca1da2b1dbefde5ef6.tar.bz2 sequelpro-dac3db52c5b5d7773d4b7aca1da2b1dbefde5ef6.zip |
PostgresKit: Fix tests, take 2.
Diffstat (limited to 'Frameworks')
-rw-r--r-- | Frameworks/PostgresKit/Tests/PGDataTypeTests.m | 8 |
1 files changed, 4 insertions, 4 deletions
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 |