mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-16 10:55:09 +00:00
Swift: Update to package manager 5.1
This commit is contained in:
8 files changed
+36
-25
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import XCTest
|
||||
|
||||
#if !canImport(ObjectiveC)
|
||||
public func allTests() -> [XCTestCaseEntry] {
|
||||
return [
|
||||
testCase(GildedRoseTests.allTests),
|
||||
]
|
||||
}
|
||||
#endif
|
||||
@@ -1,7 +1,7 @@
|
||||
@testable import GildedRoseTestSuit
|
||||
|
||||
import XCTest
|
||||
|
||||
XCTMain([
|
||||
testCase(GildedRoseTests.allTests),
|
||||
])
|
||||
import GildedRoseTests
|
||||
|
||||
var tests = [XCTestCaseEntry]()
|
||||
tests += GildedRoseTests.allTests()
|
||||
XCTMain(tests)
|
||||
@@ -1,18 +0,0 @@
|
||||
@testable import GildedRose
|
||||
import XCTest
|
||||
|
||||
class GildedRoseTests: XCTestCase {
|
||||
|
||||
func testFoo() {
|
||||
let items = [Item(name: "foo", sellIn: 0, quality: 0)]
|
||||
let app = GildedRose(items: items);
|
||||
app.updateQuality();
|
||||
XCTAssertEqual("fixme", app.items[0].name);
|
||||
}
|
||||
|
||||
static var allTests : [(String, (GildedRoseTests) -> () throws -> Void)] {
|
||||
return [
|
||||
("testFoo", testFoo),
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user