Skip to content

Commit

Permalink
Convert to XCTest
Browse files Browse the repository at this point in the history
  • Loading branch information
cwalcott committed Mar 11, 2014
1 parent 288501a commit 81bbbec
Show file tree
Hide file tree
Showing 118 changed files with 713 additions and 822 deletions.
129 changes: 70 additions & 59 deletions ZXingObjC.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "25403CC3166A96FA00E13304"
BuildableName = "Unit Tests iOS.octest"
BuildableName = "Unit Tests iOS.xctest"
BlueprintName = "Unit Tests iOS"
ReferencedContainer = "container:ZXingObjC.xcodeproj">
</BuildableReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "25404177166AADAC00E13304"
BuildableName = "Unit Tests OS X.octest"
BuildableName = "Unit Tests OS X.xctest"
BlueprintName = "Unit Tests OS X"
ReferencedContainer = "container:ZXingObjC.xcodeproj">
</BuildableReference>
Expand Down
1 change: 1 addition & 0 deletions ZXingObjCTests/Supporting Files/Tests-OSX-Prefix.pch
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#import <XCTest/XCTest.h>

#import "ZXingObjC.h"
#endif
1 change: 1 addition & 0 deletions ZXingObjCTests/Supporting Files/Tests-iOS-Prefix.pch
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <XCTest/XCTest.h>

#import "ZXingObjC.h"
#endif
4 changes: 1 addition & 3 deletions ZXingObjCTests/aztec/encoder/ZXAztecEncoderTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

#import <SenTestingKit/SenTestingKit.h>

@interface ZXAztecEncoderTest : SenTestCase
@interface ZXAztecEncoderTest : XCTestCase

@end
32 changes: 16 additions & 16 deletions ZXingObjCTests/aztec/encoder/ZXAztecEncoderTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ - (void)testAztecWriter {
int bytesLen = (int)[data lengthOfBytesUsingEncoding:NSISOLatin1StringEncoding];
ZXAztecCode *aztec = [ZXAztecEncoder encode:bytes len:bytesLen minECCPercent:ZX_DEFAULT_AZTEC_EC_PERCENT];
ZXBitMatrix *expectedMatrix = aztec.matrix;
STAssertEqualObjects(expectedMatrix, matrix, @"Expected matrices to be equal");
XCTAssertEqualObjects(expectedMatrix, matrix, @"Expected matrices to be equal");
}

// synthetic tests (encode-decode round-trip)
Expand Down Expand Up @@ -306,10 +306,10 @@ - (void)testEncode:(NSString *)data compact:(BOOL)compact layers:(int)layers exp
int bytesLen = (int)[data lengthOfBytesUsingEncoding:NSISOLatin1StringEncoding];

ZXAztecCode *aztec = [ZXAztecEncoder encode:bytes len:bytesLen minECCPercent:33];
STAssertEquals(aztec.compact, compact, @"Unexpected symbol format (compact)");
STAssertEquals(aztec.layers, layers, @"Unexpected nr. of layers");
XCTAssertEqual(aztec.compact, compact, @"Unexpected symbol format (compact)");
XCTAssertEqual(aztec.layers, layers, @"Unexpected nr. of layers");
ZXBitMatrix *matrix = aztec.matrix;
STAssertEqualObjects([matrix description], expected, @"encode() failed");
XCTAssertEqualObjects([matrix description], expected, @"encode() failed");
}

- (void)testEncodeDecode:(NSString *)data compact:(BOOL)compact layers:(int)layers {
Expand All @@ -318,12 +318,12 @@ - (void)testEncodeDecode:(NSString *)data compact:(BOOL)compact layers:(int)laye
int bytesLen = (int)[data lengthOfBytesUsingEncoding:NSISOLatin1StringEncoding];

ZXAztecCode *aztec = [ZXAztecEncoder encode:bytes len:bytesLen minECCPercent:25];
STAssertEquals(aztec.compact, compact, @"Unexpected symbol format (compact)");
STAssertEquals(aztec.layers, layers, @"Unexpected nr. of layers");
XCTAssertEqual(aztec.compact, compact, @"Unexpected symbol format (compact)");
XCTAssertEqual(aztec.layers, layers, @"Unexpected nr. of layers");
ZXBitMatrix *matrix = aztec.matrix;
ZXAztecDetectorResult *r = [[ZXAztecDetectorResult alloc] initWithBits:matrix points:@[] compact:aztec.compact nbDatablocks:aztec.codeWords nbLayers:aztec.layers];
ZXDecoderResult *res = [[[ZXAztecDecoder alloc] init] decode:r error:nil];
STAssertEqualObjects(res.text, data, @"Data did not match");
XCTAssertEqualObjects(res.text, data, @"Data did not match");
// Check error correction by introducing a few minor errors
srand(ZXAztecEncoderTest_RANDOM_SEED);
[matrix flipX:rand() % matrix.width y:rand() % 2];
Expand All @@ -332,7 +332,7 @@ - (void)testEncodeDecode:(NSString *)data compact:(BOOL)compact layers:(int)laye
[matrix flipX:matrix.width - 2 + rand() % 2 y:rand() % matrix.height];
r = [[ZXAztecDetectorResult alloc] initWithBits:matrix points:@[] compact:aztec.compact nbDatablocks:aztec.codeWords nbLayers:aztec.layers];
res = [[[ZXAztecDecoder alloc] init] decode:r error:nil];
STAssertEqualObjects(res.text, data, @"Data did not match");
XCTAssertEqualObjects(res.text, data, @"Data did not match");
}

- (void)testWriter:(NSString *)data encoding:(NSStringEncoding)encoding eccPercent:(int)eccPercent compact:(BOOL)compact layers:(int)layers {
Expand All @@ -348,13 +348,13 @@ - (void)testWriter:(NSString *)data encoding:(NSStringEncoding)encoding eccPerce
ZXAztecWriter *writer = [[ZXAztecWriter alloc] init];
ZXBitMatrix *matrix = [writer encode:data format:kBarcodeFormatAztec width:0 height:0 hints:hints error:nil];
ZXAztecCode *aztec = [ZXAztecEncoder encode:bytes len:bytesLen minECCPercent:eccPercent];
STAssertEquals(aztec.compact, compact, @"Unexpected symbol format (compact)");
STAssertEquals(aztec.layers, layers, @"Unexpected nr. of layers");
XCTAssertEqual(aztec.compact, compact, @"Unexpected symbol format (compact)");
XCTAssertEqual(aztec.layers, layers, @"Unexpected nr. of layers");
ZXBitMatrix *matrix2 = aztec.matrix;
STAssertEqualObjects(matrix2, matrix, @"Expected matrices to be equal");
XCTAssertEqualObjects(matrix2, matrix, @"Expected matrices to be equal");
ZXAztecDetectorResult *r = [[ZXAztecDetectorResult alloc] initWithBits:matrix points:@[] compact:aztec.compact nbDatablocks:aztec.codeWords nbLayers:aztec.layers];
ZXDecoderResult *res = [[[ZXAztecDecoder alloc] init] decode:r error:nil];
STAssertEqualObjects(res.text, expectedData, @"Data did not match");
XCTAssertEqualObjects(res.text, expectedData, @"Data did not match");
// Check error correction by introducing up to eccPercent errors
srand(ZXAztecEncoderTest_RANDOM_SEED);
NSInteger ecWords = aztec.codeWords * eccPercent / 100;
Expand All @@ -370,18 +370,18 @@ - (void)testWriter:(NSString *)data encoding:(NSStringEncoding)encoding eccPerce
}
r = [[ZXAztecDetectorResult alloc] initWithBits:matrix points:@[] compact:aztec.compact nbDatablocks:aztec.codeWords nbLayers:aztec.layers];
res = [[[ZXAztecDecoder alloc] init] decode:r error:nil];
STAssertEqualObjects(res.text, expectedData, @"Data did not match");
XCTAssertEqualObjects(res.text, expectedData, @"Data did not match");
}

- (void)testModeMessageCompact:(BOOL)compact layers:(int)layers words:(int)words expected:(NSString *)expected {
ZXBitArray *inArray = [ZXAztecEncoder generateModeMessageCompact:compact layers:layers messageSizeInWords:words];
STAssertEqualObjects([[inArray description] stringByReplacingOccurrencesOfString:@" " withString:@""], [expected stringByReplacingOccurrencesOfString:@" " withString:@""], @"generateModeMessage() failed");
XCTAssertEqualObjects([[inArray description] stringByReplacingOccurrencesOfString:@" " withString:@""], [expected stringByReplacingOccurrencesOfString:@" " withString:@""], @"generateModeMessage() failed");
}

- (void)testStuffBits:(int)wordSize bits:(NSString *)bits expected:(NSString *)expected {
ZXBitArray *inArray = [self toBitArray:bits];
ZXBitArray *stuffed = [ZXAztecEncoder stuffBits:inArray wordSize:wordSize];
STAssertEqualObjects([[stuffed description] stringByReplacingOccurrencesOfString:@" " withString:@""], [expected stringByReplacingOccurrencesOfString:@" " withString:@""], @"stuffBits() failed for input string: %@", bits);
XCTAssertEqualObjects([[stuffed description] stringByReplacingOccurrencesOfString:@" " withString:@""], [expected stringByReplacingOccurrencesOfString:@" " withString:@""], @"stuffBits() failed for input string: %@", bits);
}

- (ZXBitArray *)toBitArray:(NSString *)bits {
Expand All @@ -406,7 +406,7 @@ - (void)testHighLevelEncodeString:(NSString *)s expectedBits:(NSString *)expecte

ZXBitArray *bits = [ZXAztecEncoder highLevelEncode:bytes len:bytesLen];
NSString *receivedBits = [[bits description] stringByReplacingOccurrencesOfString:@" " withString:@""];
STAssertEqualObjects(receivedBits, [expectedBits stringByReplacingOccurrencesOfString:@" " withString:@""], @"highLevelEncode() failed for input string: %@", s);
XCTAssertEqualObjects(receivedBits, [expectedBits stringByReplacingOccurrencesOfString:@" " withString:@""], @"highLevelEncode() failed for input string: %@", s);
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

#import <SenTestingKit/SenTestingKit.h>

@interface ZXAddressBookParsedResultTestCase : SenTestCase
@interface ZXAddressBookParsedResultTestCase : XCTestCase

@end
22 changes: 11 additions & 11 deletions ZXingObjCTests/client/result/ZXAddressBookParsedResultTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -206,18 +206,18 @@ - (void)doTestWithContents:(NSString *)contents
note:(NSString *)note {
ZXResult *fakeResult = [ZXResult resultWithText:contents rawBytes:NULL length:0 resultPoints:nil format:kBarcodeFormatQRCode];
ZXParsedResult *result = [ZXResultParser parseResult:fakeResult];
STAssertEquals(kParsedResultTypeAddressBook, result.type, @"Result type mismatch");
XCTAssertEqual(kParsedResultTypeAddressBook, result.type, @"Result type mismatch");
ZXAddressBookParsedResult *addressResult = (ZXAddressBookParsedResult *)result;
STAssertEqualObjects(addressResult.title, title, @"Titles do not match");
STAssertEqualObjects(addressResult.names, names, @"Names do not match");
STAssertEqualObjects(addressResult.pronunciation, pronunciation, @"Pronunciation does not match");
STAssertEqualObjects(addressResult.addresses, addresses, @"Addresses do not match");
STAssertEqualObjects(addressResult.emails, emails, @"Emails do not match");
STAssertEqualObjects(addressResult.phoneNumbers, phoneNumbers, @"Phone numbers do not match");
STAssertEqualObjects(addressResult.org, org, @"Org does not match");
STAssertEqualObjects(addressResult.urls, urls, @"URLs do not match");
STAssertEqualObjects(addressResult.birthday, birthday, @"Birthday does not match");
STAssertEqualObjects(addressResult.note, note, @"Note does not match");
XCTAssertEqualObjects(addressResult.title, title, @"Titles do not match");
XCTAssertEqualObjects(addressResult.names, names, @"Names do not match");
XCTAssertEqualObjects(addressResult.pronunciation, pronunciation, @"Pronunciation does not match");
XCTAssertEqualObjects(addressResult.addresses, addresses, @"Addresses do not match");
XCTAssertEqualObjects(addressResult.emails, emails, @"Emails do not match");
XCTAssertEqualObjects(addressResult.phoneNumbers, phoneNumbers, @"Phone numbers do not match");
XCTAssertEqualObjects(addressResult.org, org, @"Org does not match");
XCTAssertEqualObjects(addressResult.urls, urls, @"URLs do not match");
XCTAssertEqualObjects(addressResult.birthday, birthday, @"Birthday does not match");
XCTAssertEqualObjects(addressResult.note, note, @"Note does not match");
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

#import <SenTestingKit/SenTestingKit.h>

@interface ZXCalendarParsedResultTestCase : SenTestCase
@interface ZXCalendarParsedResultTestCase : XCTestCase

@end
20 changes: 10 additions & 10 deletions ZXingObjCTests/client/result/ZXCalendarParsedResultTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -241,24 +241,24 @@ - (void)doTestWithContents:(NSString *)contents
longitude:(double)longitude {
ZXResult *fakeResult = [ZXResult resultWithText:contents rawBytes:NULL length:0 resultPoints:nil format:kBarcodeFormatQRCode];
ZXParsedResult *result = [ZXResultParser parseResult:fakeResult];
STAssertEquals(result.type, kParsedResultTypeCalendar, @"Types do not match");
XCTAssertEqual(result.type, kParsedResultTypeCalendar, @"Types do not match");
ZXCalendarParsedResult *calResult = (ZXCalendarParsedResult *)result;
STAssertEqualObjects(calResult.description, description, @"Descriptions do not match");
STAssertEqualObjects(calResult.summary, summary, @"Summaries do not match");
STAssertEqualObjects(calResult.location, location, @"Locations do not match");
STAssertEqualObjects([DATE_TIME_FORMAT stringFromDate:calResult.start], startString, @"Starts do not match");
STAssertEqualObjects([DATE_TIME_FORMAT stringFromDate:calResult.end], endString, @"Ends do not match");
STAssertEqualObjects(organizer, calResult.organizer, @"Organizers do not match");
STAssertEqualObjects(attendees, calResult.attendees, @"Attendees do not match");
XCTAssertEqualObjects(calResult.description, description, @"Descriptions do not match");
XCTAssertEqualObjects(calResult.summary, summary, @"Summaries do not match");
XCTAssertEqualObjects(calResult.location, location, @"Locations do not match");
XCTAssertEqualObjects([DATE_TIME_FORMAT stringFromDate:calResult.start], startString, @"Starts do not match");
XCTAssertEqualObjects([DATE_TIME_FORMAT stringFromDate:calResult.end], endString, @"Ends do not match");
XCTAssertEqualObjects(organizer, calResult.organizer, @"Organizers do not match");
XCTAssertEqualObjects(attendees, calResult.attendees, @"Attendees do not match");
[self assertEqualOrNAN:latitude actual:calResult.latitude];
[self assertEqualOrNAN:longitude actual:calResult.longitude];
}

- (void)assertEqualOrNAN:(double)expected actual:(double)actual {
if (isnan(expected)) {
STAssertTrue(isnan(actual), @"Expected %f to be NAN", actual);
XCTAssertTrue(isnan(actual), @"Expected %f to be NAN", actual);
} else {
STAssertEqualsWithAccuracy(actual, expected, EPSILON, @"Expected %f to equal %f", actual, expected);
XCTAssertEqualWithAccuracy(actual, expected, EPSILON, @"Expected %f to equal %f", actual, expected);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

#import <SenTestingKit/SenTestingKit.h>

@interface ZXEmailAddressParsedResultTestCase : SenTestCase
@interface ZXEmailAddressParsedResultTestCase : XCTestCase

@end
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ - (void)doTestWithContents:(NSString *)contents
body:(NSString *)body {
ZXResult *fakeResult = [ZXResult resultWithText:contents rawBytes:NULL length:0 resultPoints:nil format:kBarcodeFormatQRCode];
ZXParsedResult *result = [ZXResultParser parseResult:fakeResult];
STAssertEquals(result.type, kParsedResultTypeEmailAddress, @"Types do not match");
XCTAssertEqual(result.type, kParsedResultTypeEmailAddress, @"Types do not match");
ZXEmailAddressParsedResult *emailResult = (ZXEmailAddressParsedResult *)result;
STAssertEqualObjects(emailResult.emailAddress, email, @"Email addresses do not match");
STAssertEqualObjects(emailResult.mailtoURI, [@"mailto:" stringByAppendingString:emailResult.emailAddress], @"Mailto URIs do not match");
STAssertEqualObjects(emailResult.subject, subject, @"Subjects do not match");
STAssertEqualObjects(emailResult.body, body, @"Bodies do not match");
XCTAssertEqualObjects(emailResult.emailAddress, email, @"Email addresses do not match");
XCTAssertEqualObjects(emailResult.mailtoURI, [@"mailto:" stringByAppendingString:emailResult.emailAddress], @"Mailto URIs do not match");
XCTAssertEqualObjects(emailResult.subject, subject, @"Subjects do not match");
XCTAssertEqualObjects(emailResult.body, body, @"Bodies do not match");
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

#import <SenTestingKit/SenTestingKit.h>

@interface ZXExpandedProductParsedResultTestCase : SenTestCase
@interface ZXExpandedProductParsedResultTestCase : XCTestCase

@end
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ - (void)test_RSSExpanded {
resultPoints:nil
format:kBarcodeFormatRSSExpanded];
ZXExpandedProductParsedResult *o = (ZXExpandedProductParsedResult *)[[[ZXExpandedProductResultParser alloc] init] parse:result];
STAssertNotNil(o, @"Expected result to be non-nil");
STAssertEqualObjects(o.productID, @"66546", @"Product IDs don't match");
STAssertNil(o.sscc, @"Expected sscc to be nil");
STAssertNil(o.lotNumber, @"Expected lot number to be nil");
STAssertNil(o.productionDate, @"Expected production dates to be nil");
STAssertEqualObjects(o.packagingDate, @"001205", @"Packaging dates don't match");
STAssertNil(o.bestBeforeDate, @"Expected best before date to be nil");
STAssertNil(o.expirationDate, @"Expected expiration date to be nil");
STAssertEqualObjects(o.weight, @"6544", @"Weights don't match");
STAssertEqualObjects(o.weightType, @"KG", @"Weight types don't match");
STAssertEqualObjects(o.weightIncrement, @"2", @"Weight increments don't match");
STAssertEqualObjects(o.price, @"5", @"Prices don't match");
STAssertEqualObjects(o.priceIncrement, @"2", @"Price increments don't match");
STAssertEqualObjects(o.priceCurrency, @"445", @"Price currencies don't match");
STAssertEqualObjects(o.uncommonAIs, uncommonAIs, @"Uncommon AIs don't match");
XCTAssertNotNil(o, @"Expected result to be non-nil");
XCTAssertEqualObjects(o.productID, @"66546", @"Product IDs don't match");
XCTAssertNil(o.sscc, @"Expected sscc to be nil");
XCTAssertNil(o.lotNumber, @"Expected lot number to be nil");
XCTAssertNil(o.productionDate, @"Expected production dates to be nil");
XCTAssertEqualObjects(o.packagingDate, @"001205", @"Packaging dates don't match");
XCTAssertNil(o.bestBeforeDate, @"Expected best before date to be nil");
XCTAssertNil(o.expirationDate, @"Expected expiration date to be nil");
XCTAssertEqualObjects(o.weight, @"6544", @"Weights don't match");
XCTAssertEqualObjects(o.weightType, @"KG", @"Weight types don't match");
XCTAssertEqualObjects(o.weightIncrement, @"2", @"Weight increments don't match");
XCTAssertEqualObjects(o.price, @"5", @"Prices don't match");
XCTAssertEqualObjects(o.priceIncrement, @"2", @"Price increments don't match");
XCTAssertEqualObjects(o.priceCurrency, @"445", @"Price currencies don't match");
XCTAssertEqualObjects(o.uncommonAIs, uncommonAIs, @"Uncommon AIs don't match");
}

@end
4 changes: 1 addition & 3 deletions ZXingObjCTests/client/result/ZXGeoParsedResultTestCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

#import <SenTestingKit/SenTestingKit.h>

@interface ZXGeoParsedResultTestCase : SenTestCase
@interface ZXGeoParsedResultTestCase : XCTestCase

@end
10 changes: 5 additions & 5 deletions ZXingObjCTests/client/result/ZXGeoParsedResultTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ - (void)doTestWithContents:(NSString *)contents
query:(NSString *)query {
ZXResult *fakeResult = [ZXResult resultWithText:contents rawBytes:NULL length:0 resultPoints:nil format:kBarcodeFormatQRCode];
ZXParsedResult *result = [ZXResultParser parseResult:fakeResult];
STAssertEquals(result.type, kParsedResultTypeGeo, @"Types don't match");
XCTAssertEqual(result.type, kParsedResultTypeGeo, @"Types don't match");
ZXGeoParsedResult *geoResult = (ZXGeoParsedResult *)result;
STAssertEqualsWithAccuracy(geoResult.latitude, latitude, EPSILON, @"Latitudes don't match");
STAssertEqualsWithAccuracy(geoResult.longitude, longitude, EPSILON, @"Longitudes don't match");
STAssertEqualsWithAccuracy(geoResult.altitude, altitude, EPSILON, @"Altitudes don't match");
STAssertEqualObjects(geoResult.query, query, @"Queries don't match");
XCTAssertEqualWithAccuracy(geoResult.latitude, latitude, EPSILON, @"Latitudes don't match");
XCTAssertEqualWithAccuracy(geoResult.longitude, longitude, EPSILON, @"Longitudes don't match");
XCTAssertEqualWithAccuracy(geoResult.altitude, altitude, EPSILON, @"Altitudes don't match");
XCTAssertEqualObjects(geoResult.query, query, @"Queries don't match");
}

@end
4 changes: 1 addition & 3 deletions ZXingObjCTests/client/result/ZXISBNParsedResultTestCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

#import <SenTestingKit/SenTestingKit.h>

@interface ZXISBNParsedResultTestCase : SenTestCase
@interface ZXISBNParsedResultTestCase : XCTestCase

@end
4 changes: 2 additions & 2 deletions ZXingObjCTests/client/result/ZXISBNParsedResultTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ - (void)testISBN {
- (void)doTestWithContents:(NSString *)contents {
ZXResult *fakeResult = [ZXResult resultWithText:contents rawBytes:NULL length:0 resultPoints:nil format:kBarcodeFormatEan13];
ZXParsedResult *result = [ZXResultParser parseResult:fakeResult];
STAssertEquals(result.type, kParsedResultTypeISBN, @"Types don't match");
XCTAssertEqual(result.type, kParsedResultTypeISBN, @"Types don't match");
ZXISBNParsedResult *isbnResult = (ZXISBNParsedResult *)result;
STAssertEqualObjects(isbnResult.isbn, contents, @"Contents don't match");
XCTAssertEqualObjects(isbnResult.isbn, contents, @"Contents don't match");
}

@end
4 changes: 1 addition & 3 deletions ZXingObjCTests/client/result/ZXParsedReaderResultTestCase.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

#import <SenTestingKit/SenTestingKit.h>

@interface ZXParsedReaderResultTestCase : SenTestCase
@interface ZXParsedReaderResultTestCase : XCTestCase

@end
Loading

0 comments on commit 81bbbec

Please sign in to comment.