summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-06 22:45:12 +0300
committerGravatar Vitaly Takmazov2017-12-06 22:45:12 +0300
commitb49ac0943a47fcecb71b88dc7f7b64b80d5cf6ff (patch)
tree47f8b9726c08dc13c3b0aaab37472594faef5016
parente6287d244a25ec8f637e6da226f0251ed2259e93 (diff)
fix test target
-rw-r--r--Juick.xcodeproj/xcuserdata/vt.xcuserdatad/xcschemes/Juick.xcscheme12
-rw-r--r--JuickTests/JuickTests.m4
2 files changed, 14 insertions, 2 deletions
diff --git a/Juick.xcodeproj/xcuserdata/vt.xcuserdatad/xcschemes/Juick.xcscheme b/Juick.xcodeproj/xcuserdata/vt.xcuserdatad/xcschemes/Juick.xcscheme
index f656d02..f10319e 100644
--- a/Juick.xcodeproj/xcuserdata/vt.xcuserdatad/xcschemes/Juick.xcscheme
+++ b/Juick.xcodeproj/xcuserdata/vt.xcuserdatad/xcschemes/Juick.xcscheme
@@ -7,7 +7,7 @@
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
- buildForTesting = "NO"
+ buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
@@ -29,6 +29,16 @@
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
+ <TestableReference
+ skipped = "NO">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "77317BCB181BBE8500D60005"
+ BuildableName = "JuickTests.xctest"
+ BlueprintName = "JuickTests"
+ ReferencedContainer = "container:Juick.xcodeproj">
+ </BuildableReference>
+ </TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
diff --git a/JuickTests/JuickTests.m b/JuickTests/JuickTests.m
index 475a4f2..bb57f28 100644
--- a/JuickTests/JuickTests.m
+++ b/JuickTests/JuickTests.m
@@ -28,7 +28,9 @@
- (void)testExample
{
- XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
+ NSNumberFormatter *f = [NSNumberFormatter new];
+ f.numberStyle = NSNumberFormatterNoStyle;
+ XCTAssertEqual(123456, [[f numberFromString:@"123456"] integerValue]);
}
@end