Skip to content

Commit 1dba749

Browse files
committed
Merge pull request #49 from neonichu/simplify-verifyFilesExist
Simplify `verifyFilesExist` by using `basename`
2 parents 11445b5 + 53e8cb7 commit 1dba749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/dep/FunctionalBuildTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class FunctionalBuildTests: XCTestCase, XCTestCaseProvider {
7070

7171
func verifyFilesExist(files: [String], fixturePath: String) -> Bool {
7272
for file in files {
73-
let name = fixturePath.characters.split("/").map(String.init).last!
73+
let name = fixturePath.basename
7474
let filePath: String
7575
switch file {
7676
// Target (library) not in subfolder

0 commit comments

Comments
 (0)