Merge pull request #277 from Abizern/swift-cleanup

Update the Swift starting point
This commit is contained in:
Emily Bache 2021-11-22 08:16:40 +01:00 committed by GitHub
commit 263a07d58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 21 deletions

2
swift/.gitignore vendored
View File

@ -3,3 +3,5 @@
/Packages /Packages
/*.xcodeproj /*.xcodeproj
xcuserdata/ xcuserdata/
DerivedData/
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

View File

@ -1,4 +1,4 @@
// swift-tools-version:5.3 // swift-tools-version:5.5
import PackageDescription import PackageDescription

View File

@ -9,8 +9,4 @@ class GildedRoseTests: XCTestCase {
app.updateQuality() app.updateQuality()
XCTAssertEqual(app.items[0].name, "fixme") XCTAssertEqual(app.items[0].name, "fixme")
} }
static var allTests = [
("testFoo", testFoo),
]
} }

View File

@ -1,9 +0,0 @@
import XCTest
#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(GildedRoseTests.allTests),
]
}
#endif

View File

@ -1,7 +0,0 @@
import XCTest
import GildedRoseTests
var tests = [XCTestCaseEntry]()
tests += GildedRoseTests.allTests()
XCTMain(tests)