mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
- Ignore the generated Xcode project from the repositiory - Bump the swift tools version to 5.5 (supported by Xcode 13+) - Tidy the Tests. LinuxMain, XCTestManifests and the allTests array are no longer needed as tests - are auto-discovered on non-apple platforms
13 lines
301 B
Swift
13 lines
301 B
Swift
@testable import GildedRose
|
|
import XCTest
|
|
|
|
class GildedRoseTests: XCTestCase {
|
|
|
|
func testFoo() throws {
|
|
let items = [Item(name: "foo", sellIn: 0, quality: 0)]
|
|
let app = GildedRose(items: items)
|
|
app.updateQuality()
|
|
XCTAssertEqual(app.items[0].name, "fixme")
|
|
}
|
|
}
|