Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e907fa

Browse files
committed
Convert OCUnit to XCTest
OCUnit, farewell~
1 parent c412da0 commit 5e907fa

6 files changed

Lines changed: 52 additions & 51 deletions

File tree

VVDocumenter-Xcode.xcodeproj/project.pbxproj

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
D124614717AC16820095F9D6 /* VVDocumenterSetting.m in Sources */ = {isa = PBXBuildFile; fileRef = D124614317AC16820095F9D6 /* VVDocumenterSetting.m */; };
1616
D124614817AC16820095F9D6 /* VVDSettingPanelWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = D124614517AC16820095F9D6 /* VVDSettingPanelWindowController.m */; };
1717
D124614917AC16820095F9D6 /* VVDSettingPanelWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = D124614617AC16820095F9D6 /* VVDSettingPanelWindowController.xib */; };
18+
D14070C418CE8819009B0EED /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D14070C318CE8819009B0EED /* XCTest.framework */; };
1819
D14380F7179551B900C829CE /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D14380F6179551B900C829CE /* Cocoa.framework */; };
1920
D1438101179551B900C829CE /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = D14380FF179551B900C829CE /* InfoPlist.strings */; };
2021
D16AFCD41796E088006719AA /* VVBaseCommenter.m in Sources */ = {isa = PBXBuildFile; fileRef = D16AFCD31796E088006719AA /* VVBaseCommenter.m */; };
@@ -42,7 +43,6 @@
4243
D1B316E3189A2C7800420A6E /* VVStructCommenter.m in Sources */ = {isa = PBXBuildFile; fileRef = D16AFCE21796E0C9006719AA /* VVStructCommenter.m */; };
4344
D1B316E4189A2C7800420A6E /* VVEnumCommenter.m in Sources */ = {isa = PBXBuildFile; fileRef = D16AFCE51796E0D0006719AA /* VVEnumCommenter.m */; };
4445
D1B316E5189A2C7800420A6E /* VVVariableCommenter.m in Sources */ = {isa = PBXBuildFile; fileRef = D16AFCE81796E0D6006719AA /* VVVariableCommenter.m */; };
45-
D1C462DC17999C2000EB7B23 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D1C462DB17999C2000EB7B23 /* SenTestingKit.framework */; };
4646
D1C462DD17999C2000EB7B23 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D14380F6179551B900C829CE /* Cocoa.framework */; };
4747
D1C462E317999C2000EB7B23 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = D1C462E117999C2000EB7B23 /* InfoPlist.strings */; };
4848
D1C462E617999C2000EB7B23 /* VVDocumenterTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D1C462E517999C2000EB7B23 /* VVDocumenterTests.m */; };
@@ -69,6 +69,7 @@
6969
D124614417AC16820095F9D6 /* VVDSettingPanelWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VVDSettingPanelWindowController.h; path = "VVDocumenter-Xcode/Setting/VVDSettingPanelWindowController.h"; sourceTree = SOURCE_ROOT; };
7070
D124614517AC16820095F9D6 /* VVDSettingPanelWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VVDSettingPanelWindowController.m; path = "VVDocumenter-Xcode/Setting/VVDSettingPanelWindowController.m"; sourceTree = SOURCE_ROOT; };
7171
D124614617AC16820095F9D6 /* VVDSettingPanelWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = VVDSettingPanelWindowController.xib; path = "VVDocumenter-Xcode/Setting/VVDSettingPanelWindowController.xib"; sourceTree = SOURCE_ROOT; };
72+
D14070C318CE8819009B0EED /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
7273
D14380F3179551B900C829CE /* VVDocumenter-Xcode.xcplugin */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "VVDocumenter-Xcode.xcplugin"; sourceTree = BUILT_PRODUCTS_DIR; };
7374
D14380F6179551B900C829CE /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
7475
D14380F9179551B900C829CE /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
@@ -100,8 +101,7 @@
100101
D1AC3B8D1796DB070063A484 /* VVDocumenter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VVDocumenter.h; sourceTree = "<group>"; };
101102
D1AC3B8E1796DB070063A484 /* VVDocumenter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VVDocumenter.m; sourceTree = "<group>"; };
102103
D1B316D5189A2AA700420A6E /* VVMethodTestsCode.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = VVMethodTestsCode.plist; sourceTree = "<group>"; };
103-
D1C462DA17999C2000EB7B23 /* VVDocumenterTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VVDocumenterTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
104-
D1C462DB17999C2000EB7B23 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
104+
D1C462DA17999C2000EB7B23 /* VVDocumenterTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VVDocumenterTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
105105
D1C462E017999C2000EB7B23 /* VVDocumenterTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "VVDocumenterTests-Info.plist"; sourceTree = "<group>"; };
106106
D1C462E217999C2000EB7B23 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
107107
D1C462E517999C2000EB7B23 /* VVDocumenterTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VVDocumenterTests.m; sourceTree = "<group>"; };
@@ -130,8 +130,8 @@
130130
isa = PBXFrameworksBuildPhase;
131131
buildActionMask = 2147483647;
132132
files = (
133+
D14070C418CE8819009B0EED /* XCTest.framework in Frameworks */,
133134
53C67935184501030030C553 /* Carbon.framework in Frameworks */,
134-
D1C462DC17999C2000EB7B23 /* SenTestingKit.framework in Frameworks */,
135135
D1C462DD17999C2000EB7B23 /* Cocoa.framework in Frameworks */,
136136
);
137137
runOnlyForDeploymentPostprocessing = 0;
@@ -181,17 +181,17 @@
181181
isa = PBXGroup;
182182
children = (
183183
D14380F3179551B900C829CE /* VVDocumenter-Xcode.xcplugin */,
184-
D1C462DA17999C2000EB7B23 /* VVDocumenterTests.octest */,
184+
D1C462DA17999C2000EB7B23 /* VVDocumenterTests.xctest */,
185185
);
186186
name = Products;
187187
sourceTree = "<group>";
188188
};
189189
D14380F5179551B900C829CE /* Frameworks */ = {
190190
isa = PBXGroup;
191191
children = (
192+
D14070C318CE8819009B0EED /* XCTest.framework */,
192193
893D8F7F18262EF500E8A00C /* Carbon.framework */,
193194
D14380F6179551B900C829CE /* Cocoa.framework */,
194-
D1C462DB17999C2000EB7B23 /* SenTestingKit.framework */,
195195
D14380F8179551B900C829CE /* Other Frameworks */,
196196
);
197197
name = Frameworks;
@@ -375,15 +375,16 @@
375375
);
376376
name = VVDocumenterTests;
377377
productName = VVDocumenterTests;
378-
productReference = D1C462DA17999C2000EB7B23 /* VVDocumenterTests.octest */;
379-
productType = "com.apple.product-type.bundle";
378+
productReference = D1C462DA17999C2000EB7B23 /* VVDocumenterTests.xctest */;
379+
productType = "com.apple.product-type.bundle.unit-test";
380380
};
381381
/* End PBXNativeTarget section */
382382

383383
/* Begin PBXProject section */
384384
D14380EB179551B900C829CE /* Project object */ = {
385385
isa = PBXProject;
386386
attributes = {
387+
LastTestingUpgradeCheck = 0510;
387388
LastUpgradeCheck = 0500;
388389
ORGANIZATIONNAME = "OneV's Den";
389390
};
@@ -615,14 +616,14 @@
615616
COMBINE_HIDPI_IMAGES = YES;
616617
FRAMEWORK_SEARCH_PATHS = (
617618
"$(DEVELOPER_DIR)/../SharedFrameworks",
618-
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
619-
"\"$(SRCROOT)/VVDocumenter-Xcode\"",
619+
"$(DEVELOPER_LIBRARY_DIR)/Frameworks",
620+
"$(inherited)",
621+
"$(DEVELOPER_FRAMEWORKS_DIR)",
620622
);
621623
GCC_PRECOMPILE_PREFIX_HEADER = YES;
622624
GCC_PREFIX_HEADER = "VVDocumenterTests/VVDocumenterTests-Prefix.pch";
623625
INFOPLIST_FILE = "VVDocumenterTests/VVDocumenterTests-Info.plist";
624626
PRODUCT_NAME = "$(TARGET_NAME)";
625-
WRAPPER_EXTENSION = octest;
626627
};
627628
name = Debug;
628629
};
@@ -633,14 +634,14 @@
633634
COMBINE_HIDPI_IMAGES = YES;
634635
FRAMEWORK_SEARCH_PATHS = (
635636
"$(DEVELOPER_DIR)/../SharedFrameworks",
636-
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
637-
"\"$(SRCROOT)/VVDocumenter-Xcode\"",
637+
"$(DEVELOPER_LIBRARY_DIR)/Frameworks",
638+
"$(inherited)",
639+
"$(DEVELOPER_FRAMEWORKS_DIR)",
638640
);
639641
GCC_PRECOMPILE_PREFIX_HEADER = YES;
640642
GCC_PREFIX_HEADER = "VVDocumenterTests/VVDocumenterTests-Prefix.pch";
641643
INFOPLIST_FILE = "VVDocumenterTests/VVDocumenterTests-Info.plist";
642644
PRODUCT_NAME = "$(TARGET_NAME)";
643-
WRAPPER_EXTENSION = octest;
644645
};
645646
name = Release;
646647
};

VVDocumenterTests/CommenterTests/CommenterTests.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// Copyright (c) 2013年 OneV's Den. All rights reserved.
77
//
88

9-
#import <SenTestingKit/SenTestingKit.h>
9+
#import <XCTest/XCTest.h>
1010

11-
@interface CommenterTests : SenTestCase
11+
@interface CommenterTests : XCTestCase
1212

1313
@end

VVDocumenterTests/CommenterTests/CommenterTests.m

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,24 @@ - (void) testArgumentType
3434
VVArgument *arg = [[VVArgument alloc] init];
3535

3636
arg.type = @" int ";
37-
STAssertEqualObjects(arg.type, @"int", @"%@",arg.type);
37+
XCTAssertEqualObjects(arg.type, @"int", @"%@",arg.type);
3838

3939
arg.type = @"char *";
40-
STAssertEqualObjects(arg.type, @"char", @"%@",arg.type);
40+
XCTAssertEqualObjects(arg.type, @"char", @"%@",arg.type);
4141

4242
arg.type = @"NSString *";
43-
STAssertEqualObjects(arg.type, @"NSString", @"%@",arg.type);
43+
XCTAssertEqualObjects(arg.type, @"NSString", @"%@",arg.type);
4444
}
4545

4646
- (void) testArgumentName
4747
{
4848
VVArgument *arg = [[VVArgument alloc] init];
4949

5050
arg.name = @"*argv[]";
51-
STAssertEqualObjects(arg.name, @"argv", @"%@",arg.name);
51+
XCTAssertEqualObjects(arg.name, @"argv", @"%@",arg.name);
5252

5353
arg.name = @"**a";
54-
STAssertEqualObjects(arg.name, @"a", @"%@",arg.name);
54+
XCTAssertEqualObjects(arg.name, @"a", @"%@",arg.name);
5555

5656
}
5757

@@ -74,12 +74,12 @@ -(void) testParseArguments
7474
}
7575

7676
NSUInteger count = baseCommenter.arguments.count;
77-
STAssertEquals(count, (NSUInteger)2, @"There should be 2 args, %@",baseCommenter.arguments);
78-
STAssertEqualObjects(arg0.type, [(VVArgument *)baseCommenter.arguments[0] type], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[0] type], arg0.type);
79-
STAssertEqualObjects(arg1.type, [(VVArgument *)baseCommenter.arguments[1] type], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[1] type], arg1.type);
77+
XCTAssertEqual(count, (NSUInteger)2, @"There should be 2 args, %@",baseCommenter.arguments);
78+
XCTAssertEqualObjects(arg0.type, [(VVArgument *)baseCommenter.arguments[0] type], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[0] type], arg0.type);
79+
XCTAssertEqualObjects(arg1.type, [(VVArgument *)baseCommenter.arguments[1] type], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[1] type], arg1.type);
8080

81-
STAssertEqualObjects(arg0.name, [(VVArgument *)baseCommenter.arguments[0] name], @"%@ should be name %@", [(VVArgument *)baseCommenter.arguments[0] name], arg0.name);
82-
STAssertEqualObjects(arg1.name, [(VVArgument *)baseCommenter.arguments[1] name], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[1] name], arg1.name);
81+
XCTAssertEqualObjects(arg0.name, [(VVArgument *)baseCommenter.arguments[0] name], @"%@ should be name %@", [(VVArgument *)baseCommenter.arguments[0] name], arg0.name);
82+
XCTAssertEqualObjects(arg1.name, [(VVArgument *)baseCommenter.arguments[1] name], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[1] name], arg1.name);
8383

8484
baseCommenter.code = @"int main(int argc, char *argv[]) \n {";
8585
arg0.type = @"int";
@@ -93,12 +93,12 @@ -(void) testParseArguments
9393
[baseCommenter parseArgumentsInputArgs:braceGroups[0]];
9494
}
9595
count = baseCommenter.arguments.count;
96-
STAssertEquals(count, (NSUInteger)2, @"There should be 2 args, %@",baseCommenter.arguments);
97-
STAssertEqualObjects(arg0.type, [(VVArgument *)baseCommenter.arguments[0] type], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[0] type], arg0.type);
98-
STAssertEqualObjects(arg1.type, [(VVArgument *)baseCommenter.arguments[1] type], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[1] type], arg1.type);
96+
XCTAssertEqual(count, (NSUInteger)2, @"There should be 2 args, %@",baseCommenter.arguments);
97+
XCTAssertEqualObjects(arg0.type, [(VVArgument *)baseCommenter.arguments[0] type], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[0] type], arg0.type);
98+
XCTAssertEqualObjects(arg1.type, [(VVArgument *)baseCommenter.arguments[1] type], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[1] type], arg1.type);
9999

100-
STAssertEqualObjects(arg0.name, [(VVArgument *)baseCommenter.arguments[0] name], @"%@ should be name %@", [(VVArgument *)baseCommenter.arguments[0] name], arg0.name);
101-
STAssertEqualObjects(arg1.name, [(VVArgument *)baseCommenter.arguments[1] name], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[1] name], arg1.name);
100+
XCTAssertEqualObjects(arg0.name, [(VVArgument *)baseCommenter.arguments[0] name], @"%@ should be name %@", [(VVArgument *)baseCommenter.arguments[0] name], arg0.name);
101+
XCTAssertEqualObjects(arg1.name, [(VVArgument *)baseCommenter.arguments[1] name], @"%@ should be type %@", [(VVArgument *)baseCommenter.arguments[1] name], arg1.name);
102102

103103
}
104104

VVDocumenterTests/SyntaxTests/SyntaxTests.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// Copyright (c) 2013年 OneV's Den. All rights reserved.
77
//
88

9-
#import <SenTestingKit/SenTestingKit.h>
9+
#import <XCTest/XCTest.h>
1010

11-
@interface SyntaxTests : SenTestCase
11+
@interface SyntaxTests : XCTestCase
1212

1313
@end

VVDocumenterTests/SyntaxTests/SyntaxTests.m

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ -(void) testStringByConvertingToUniform {
4444
for (int j = 0; j < [self.inputs[i] count]; j++) {
4545
NSString *converted = [self.inputs[i][j] vv_stringByConvertingToUniform];
4646
NSString *result = self.corrects[i][j];
47-
STAssertTrue([result isEqualToString:converted], @"%@ should be the same as %@", converted, result);
47+
XCTAssertTrue([result isEqualToString:converted], @"%@ should be the same as %@", converted, result);
4848
}
4949
}
5050
}
@@ -55,7 +55,7 @@ -(void) testIsObjCMethod {
5555
for (int i = 0; i < (int)[self.inputs count]; i++) {
5656
for (int j = 0; j < [self.inputs[i] count]; j++) {
5757
NSString *result = self.corrects[i][j];
58-
STAssertTrue([result vv_isObjCMethod] == [boolResult[i] boolValue], @"%@ should %@ be a ObjC method", result, [boolResult[i] boolValue] ? @"" : @"not");
58+
XCTAssertTrue([result vv_isObjCMethod] == [boolResult[i] boolValue], @"%@ should %@ be a ObjC method", result, [boolResult[i] boolValue] ? @"" : @"not");
5959
}
6060
}
6161
}
@@ -66,7 +66,7 @@ -(void) testIsCFunction {
6666
for (int i = 0; i < (int)[self.inputs count]; i++) {
6767
for (int j = 0; j < [self.inputs[i] count]; j++) {
6868
NSString *result = self.corrects[i][j];
69-
STAssertTrue([result vv_isCFunction] == [boolResult[i] boolValue], @"%@ should %@ be a C function", result, [boolResult[i] boolValue] ? @"" : @"not");
69+
XCTAssertTrue([result vv_isCFunction] == [boolResult[i] boolValue], @"%@ should %@ be a C function", result, [boolResult[i] boolValue] ? @"" : @"not");
7070
}
7171
}
7272
}
@@ -77,7 +77,7 @@ -(void) testIsProperty {
7777
for (int i = 0; i < (int)[self.inputs count]; i++) {
7878
for (int j = 0; j < [self.inputs[i] count]; j++) {
7979
NSString *result = self.corrects[i][j];
80-
STAssertTrue([result vv_isProperty] == [boolResult[i] boolValue], @"%@ should %@ be a property", result, [boolResult[i] boolValue] ? @"" : @"not");
80+
XCTAssertTrue([result vv_isProperty] == [boolResult[i] boolValue], @"%@ should %@ be a property", result, [boolResult[i] boolValue] ? @"" : @"not");
8181
}
8282
}
8383
}
@@ -88,7 +88,7 @@ -(void) testIsMacro {
8888
for (int i = 0; i < (int)[self.inputs count]; i++) {
8989
for (int j = 0; j < [self.inputs[i] count]; j++) {
9090
NSString *result = self.corrects[i][j];
91-
STAssertTrue([result vv_isMacro] == [boolResult[i] boolValue], @"%@ should %@ be a macro", result, [boolResult[i] boolValue] ? @"" : @"not");
91+
XCTAssertTrue([result vv_isMacro] == [boolResult[i] boolValue], @"%@ should %@ be a macro", result, [boolResult[i] boolValue] ? @"" : @"not");
9292
}
9393
}
9494
}
@@ -99,7 +99,7 @@ -(void) testIsStruct {
9999
for (int i = 0; i < (int)[self.inputs count]; i++) {
100100
for (int j = 0; j < [self.inputs[i] count]; j++) {
101101
NSString *result = self.corrects[i][j];
102-
STAssertTrue([result vv_isStruct] == [boolResult[i] boolValue], @"%@ should %@ be a struct", result, [boolResult[i] boolValue] ? @"" : @"not");
102+
XCTAssertTrue([result vv_isStruct] == [boolResult[i] boolValue], @"%@ should %@ be a struct", result, [boolResult[i] boolValue] ? @"" : @"not");
103103
}
104104
}
105105
}
@@ -110,7 +110,7 @@ -(void) testIsEnum {
110110
for (int i = 0; i < (int)[self.inputs count]; i++) {
111111
for (int j = 0; j < [self.inputs[i] count]; j++) {
112112
NSString *result = self.corrects[i][j];
113-
STAssertTrue([result vv_isEnum] == [boolResult[i] boolValue], @"%@ should %@ be a enum", result, [boolResult[i] boolValue] ? @"" : @"not");
113+
XCTAssertTrue([result vv_isEnum] == [boolResult[i] boolValue], @"%@ should %@ be a enum", result, [boolResult[i] boolValue] ? @"" : @"not");
114114
}
115115
}
116116
}
@@ -121,7 +121,7 @@ -(void) testIsUnion {
121121
for (int i = 0; i < (int)[self.inputs count]; i++) {
122122
for (int j = 0; j < [self.inputs[i] count]; j++) {
123123
NSString *result = self.corrects[i][j];
124-
STAssertTrue([result vv_isUnion] == [boolResult[i] boolValue], @"%@ should %@ be a union", result, [boolResult[i] boolValue] ? @"" : @"not");
124+
XCTAssertTrue([result vv_isUnion] == [boolResult[i] boolValue], @"%@ should %@ be a union", result, [boolResult[i] boolValue] ? @"" : @"not");
125125
}
126126
}
127127
}
@@ -132,7 +132,7 @@ -(void) testIsCompileKeyword {
132132
for (int i = 0; i < (int)[self.inputs count]; i++) {
133133
for (int j = 0; j < [self.inputs[i] count]; j++) {
134134
NSString *result = self.corrects[i][j];
135-
STAssertTrue([result vv_isComplieKeyword] == [boolResult[i] boolValue], @"%@ should %@ be a complie keyword", result, [boolResult[i] boolValue] ? @"" : @"not");
135+
XCTAssertTrue([result vv_isComplieKeyword] == [boolResult[i] boolValue], @"%@ should %@ be a complie keyword", result, [boolResult[i] boolValue] ? @"" : @"not");
136136
}
137137
}
138138
}

0 commit comments

Comments
 (0)