Skip to content

Commit 4d4b63d

Browse files
Update test project to run palindrome tests
1 parent 9d4f6ea commit 4d4b63d

File tree

11 files changed

+279
-606
lines changed

11 files changed

+279
-606
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ script:
4040
- xcodebuild test -project ./Stack/Tests/Tests.xcodeproj -scheme Tests
4141
- xcodebuild test -project ./Topological\ Sort/Tests/Tests.xcodeproj -scheme Tests
4242
- xcodebuild test -project ./Treap/Treap/Treap.xcodeproj -scheme Tests
43-
- xcodebuild test -project ./Palindromes/Tests/Tests.xcodeproj -scheme Tests
43+
- xcodebuild test -project ./Palindromes/Test/Test.xcodeproj -scheme Test
Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 46;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
9437D8841E0D960A00A38FB8 /* Test.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9437D8831E0D960A00A38FB8 /* Test.swift */; };
11+
9437D88B1E0D969500A38FB8 /* Palindromes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9437D8791E0D948A00A38FB8 /* Palindromes.swift */; };
12+
/* End PBXBuildFile section */
13+
14+
/* Begin PBXFileReference section */
15+
9437D8791E0D948A00A38FB8 /* Palindromes.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Palindromes.swift; sourceTree = "<group>"; };
16+
9437D8811E0D960A00A38FB8 /* Test.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Test.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
17+
9437D8831E0D960A00A38FB8 /* Test.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Test.swift; sourceTree = "<group>"; };
18+
9437D8851E0D960A00A38FB8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
19+
/* End PBXFileReference section */
20+
21+
/* Begin PBXFrameworksBuildPhase section */
22+
9437D87E1E0D960A00A38FB8 /* Frameworks */ = {
23+
isa = PBXFrameworksBuildPhase;
24+
buildActionMask = 2147483647;
25+
files = (
26+
);
27+
runOnlyForDeploymentPostprocessing = 0;
28+
};
29+
/* End PBXFrameworksBuildPhase section */
30+
31+
/* Begin PBXGroup section */
32+
9437D8651E0D945200A38FB8 = {
33+
isa = PBXGroup;
34+
children = (
35+
9437D8791E0D948A00A38FB8 /* Palindromes.swift */,
36+
9437D8821E0D960A00A38FB8 /* Test */,
37+
9437D86F1E0D945200A38FB8 /* Products */,
38+
);
39+
sourceTree = "<group>";
40+
};
41+
9437D86F1E0D945200A38FB8 /* Products */ = {
42+
isa = PBXGroup;
43+
children = (
44+
9437D8811E0D960A00A38FB8 /* Test.xctest */,
45+
);
46+
name = Products;
47+
sourceTree = "<group>";
48+
};
49+
9437D8821E0D960A00A38FB8 /* Test */ = {
50+
isa = PBXGroup;
51+
children = (
52+
9437D8831E0D960A00A38FB8 /* Test.swift */,
53+
9437D8851E0D960A00A38FB8 /* Info.plist */,
54+
);
55+
path = Test;
56+
sourceTree = "<group>";
57+
};
58+
/* End PBXGroup section */
59+
60+
/* Begin PBXNativeTarget section */
61+
9437D8801E0D960A00A38FB8 /* Test */ = {
62+
isa = PBXNativeTarget;
63+
buildConfigurationList = 9437D8861E0D960A00A38FB8 /* Build configuration list for PBXNativeTarget "Test" */;
64+
buildPhases = (
65+
9437D87D1E0D960A00A38FB8 /* Sources */,
66+
9437D87E1E0D960A00A38FB8 /* Frameworks */,
67+
9437D87F1E0D960A00A38FB8 /* Resources */,
68+
);
69+
buildRules = (
70+
);
71+
dependencies = (
72+
);
73+
name = Test;
74+
productName = Test;
75+
productReference = 9437D8811E0D960A00A38FB8 /* Test.xctest */;
76+
productType = "com.apple.product-type.bundle.unit-test";
77+
};
78+
/* End PBXNativeTarget section */
79+
80+
/* Begin PBXProject section */
81+
9437D8661E0D945200A38FB8 /* Project object */ = {
82+
isa = PBXProject;
83+
attributes = {
84+
LastSwiftUpdateCheck = 0820;
85+
LastUpgradeCheck = 0820;
86+
ORGANIZATIONNAME = "Joshua Alvarado";
87+
TargetAttributes = {
88+
9437D8801E0D960A00A38FB8 = {
89+
CreatedOnToolsVersion = 8.2;
90+
ProvisioningStyle = Automatic;
91+
};
92+
};
93+
};
94+
buildConfigurationList = 9437D8691E0D945200A38FB8 /* Build configuration list for PBXProject "Test" */;
95+
compatibilityVersion = "Xcode 3.2";
96+
developmentRegion = English;
97+
hasScannedForEncodings = 0;
98+
knownRegions = (
99+
en,
100+
);
101+
mainGroup = 9437D8651E0D945200A38FB8;
102+
productRefGroup = 9437D86F1E0D945200A38FB8 /* Products */;
103+
projectDirPath = "";
104+
projectRoot = "";
105+
targets = (
106+
9437D8801E0D960A00A38FB8 /* Test */,
107+
);
108+
};
109+
/* End PBXProject section */
110+
111+
/* Begin PBXResourcesBuildPhase section */
112+
9437D87F1E0D960A00A38FB8 /* Resources */ = {
113+
isa = PBXResourcesBuildPhase;
114+
buildActionMask = 2147483647;
115+
files = (
116+
);
117+
runOnlyForDeploymentPostprocessing = 0;
118+
};
119+
/* End PBXResourcesBuildPhase section */
120+
121+
/* Begin PBXSourcesBuildPhase section */
122+
9437D87D1E0D960A00A38FB8 /* Sources */ = {
123+
isa = PBXSourcesBuildPhase;
124+
buildActionMask = 2147483647;
125+
files = (
126+
9437D88B1E0D969500A38FB8 /* Palindromes.swift in Sources */,
127+
9437D8841E0D960A00A38FB8 /* Test.swift in Sources */,
128+
);
129+
runOnlyForDeploymentPostprocessing = 0;
130+
};
131+
/* End PBXSourcesBuildPhase section */
132+
133+
/* Begin XCBuildConfiguration section */
134+
9437D8721E0D945200A38FB8 /* Debug */ = {
135+
isa = XCBuildConfiguration;
136+
buildSettings = {
137+
ALWAYS_SEARCH_USER_PATHS = NO;
138+
CLANG_ANALYZER_NONNULL = YES;
139+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
140+
CLANG_CXX_LIBRARY = "libc++";
141+
CLANG_ENABLE_MODULES = YES;
142+
CLANG_ENABLE_OBJC_ARC = YES;
143+
CLANG_WARN_BOOL_CONVERSION = YES;
144+
CLANG_WARN_CONSTANT_CONVERSION = YES;
145+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
146+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
147+
CLANG_WARN_EMPTY_BODY = YES;
148+
CLANG_WARN_ENUM_CONVERSION = YES;
149+
CLANG_WARN_INFINITE_RECURSION = YES;
150+
CLANG_WARN_INT_CONVERSION = YES;
151+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
152+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
153+
CLANG_WARN_UNREACHABLE_CODE = YES;
154+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
155+
CODE_SIGN_IDENTITY = "-";
156+
COPY_PHASE_STRIP = NO;
157+
DEBUG_INFORMATION_FORMAT = dwarf;
158+
ENABLE_STRICT_OBJC_MSGSEND = YES;
159+
ENABLE_TESTABILITY = YES;
160+
GCC_C_LANGUAGE_STANDARD = gnu99;
161+
GCC_DYNAMIC_NO_PIC = NO;
162+
GCC_NO_COMMON_BLOCKS = YES;
163+
GCC_OPTIMIZATION_LEVEL = 0;
164+
GCC_PREPROCESSOR_DEFINITIONS = (
165+
"DEBUG=1",
166+
"$(inherited)",
167+
);
168+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
169+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
170+
GCC_WARN_UNDECLARED_SELECTOR = YES;
171+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
172+
GCC_WARN_UNUSED_FUNCTION = YES;
173+
GCC_WARN_UNUSED_VARIABLE = YES;
174+
MACOSX_DEPLOYMENT_TARGET = 10.11;
175+
MTL_ENABLE_DEBUG_INFO = YES;
176+
ONLY_ACTIVE_ARCH = YES;
177+
SDKROOT = macosx;
178+
};
179+
name = Debug;
180+
};
181+
9437D8731E0D945200A38FB8 /* Release */ = {
182+
isa = XCBuildConfiguration;
183+
buildSettings = {
184+
ALWAYS_SEARCH_USER_PATHS = NO;
185+
CLANG_ANALYZER_NONNULL = YES;
186+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
187+
CLANG_CXX_LIBRARY = "libc++";
188+
CLANG_ENABLE_MODULES = YES;
189+
CLANG_ENABLE_OBJC_ARC = YES;
190+
CLANG_WARN_BOOL_CONVERSION = YES;
191+
CLANG_WARN_CONSTANT_CONVERSION = YES;
192+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
193+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
194+
CLANG_WARN_EMPTY_BODY = YES;
195+
CLANG_WARN_ENUM_CONVERSION = YES;
196+
CLANG_WARN_INFINITE_RECURSION = YES;
197+
CLANG_WARN_INT_CONVERSION = YES;
198+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
199+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
200+
CLANG_WARN_UNREACHABLE_CODE = YES;
201+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
202+
CODE_SIGN_IDENTITY = "-";
203+
COPY_PHASE_STRIP = NO;
204+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
205+
ENABLE_NS_ASSERTIONS = NO;
206+
ENABLE_STRICT_OBJC_MSGSEND = YES;
207+
GCC_C_LANGUAGE_STANDARD = gnu99;
208+
GCC_NO_COMMON_BLOCKS = YES;
209+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
210+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
211+
GCC_WARN_UNDECLARED_SELECTOR = YES;
212+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
213+
GCC_WARN_UNUSED_FUNCTION = YES;
214+
GCC_WARN_UNUSED_VARIABLE = YES;
215+
MACOSX_DEPLOYMENT_TARGET = 10.11;
216+
MTL_ENABLE_DEBUG_INFO = NO;
217+
SDKROOT = macosx;
218+
};
219+
name = Release;
220+
};
221+
9437D8871E0D960A00A38FB8 /* Debug */ = {
222+
isa = XCBuildConfiguration;
223+
buildSettings = {
224+
COMBINE_HIDPI_IMAGES = YES;
225+
INFOPLIST_FILE = Test/Info.plist;
226+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
227+
MACOSX_DEPLOYMENT_TARGET = 10.12;
228+
PRODUCT_BUNDLE_IDENTIFIER = self.edu.Test;
229+
PRODUCT_NAME = "$(TARGET_NAME)";
230+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
231+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
232+
SWIFT_VERSION = 3.0;
233+
};
234+
name = Debug;
235+
};
236+
9437D8881E0D960A00A38FB8 /* Release */ = {
237+
isa = XCBuildConfiguration;
238+
buildSettings = {
239+
COMBINE_HIDPI_IMAGES = YES;
240+
INFOPLIST_FILE = Test/Info.plist;
241+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
242+
MACOSX_DEPLOYMENT_TARGET = 10.12;
243+
PRODUCT_BUNDLE_IDENTIFIER = self.edu.Test;
244+
PRODUCT_NAME = "$(TARGET_NAME)";
245+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
246+
SWIFT_VERSION = 3.0;
247+
};
248+
name = Release;
249+
};
250+
/* End XCBuildConfiguration section */
251+
252+
/* Begin XCConfigurationList section */
253+
9437D8691E0D945200A38FB8 /* Build configuration list for PBXProject "Test" */ = {
254+
isa = XCConfigurationList;
255+
buildConfigurations = (
256+
9437D8721E0D945200A38FB8 /* Debug */,
257+
9437D8731E0D945200A38FB8 /* Release */,
258+
);
259+
defaultConfigurationIsVisible = 0;
260+
defaultConfigurationName = Release;
261+
};
262+
9437D8861E0D960A00A38FB8 /* Build configuration list for PBXNativeTarget "Test" */ = {
263+
isa = XCConfigurationList;
264+
buildConfigurations = (
265+
9437D8871E0D960A00A38FB8 /* Debug */,
266+
9437D8881E0D960A00A38FB8 /* Release */,
267+
);
268+
defaultConfigurationIsVisible = 0;
269+
};
270+
/* End XCConfigurationList section */
271+
};
272+
rootObject = 9437D8661E0D945200A38FB8 /* Project object */;
273+
}

Palindromes/Tests/Tests.xcodeproj/project.xcworkspace/contents.xcworkspacedata renamed to Palindromes/Test/Test.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Palindromes/Tests/TestsTests/PalindromeTests.swift renamed to Palindromes/Test/Test/Test.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
//
22
// PalindromeTests.swift
3-
// Tests
3+
// Test
44
//
5-
// Created by Joshua Alvarado on 12/22/16.
5+
// Created by Joshua Alvarado on 12/23/16.
66
// Copyright © 2016 Joshua Alvarado. All rights reserved.
77
//
88

99
import XCTest
10-
@testable import Tests
1110

1211
class PalindromeTests: XCTestCase {
1312

@@ -48,13 +47,13 @@ class PalindromeTests: XCTestCase {
4847
XCTAssertTrue(isPalindrome("In girum imus nocte et consumimur igni"))
4948
XCTAssertTrue(isPalindrome("Never odd or even"))
5049
}
51-
50+
5251
func testPalindromeNumber() {
5352
XCTAssertTrue(isPalindrome("5885"))
5453
XCTAssertTrue(isPalindrome("5 8 8 5"))
5554
XCTAssertTrue(isPalindrome("58 85"))
5655
}
57-
56+
5857
func testSpecialCharacters() {
5958
XCTAssertTrue(isPalindrome("৯৯"))
6059
}

0 commit comments

Comments
 (0)