GildedRose-Refactoring-Kata/swift/Tests/GildedRoseTests/GildedRoseTests.swift
Abizer Nasir 080738a8b2 Update the Swift starting point
- 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
2021-11-21 17:41:38 +00:00

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")
}
}