t Define test as throws

This commit is contained in:
Jon Reid 2021-08-20 21:27:52 -07:00
parent 31825b2410
commit f26e495403
No known key found for this signature in database
GPG Key ID: 27DEB93ABA9EEA26

View File

@ -3,7 +3,7 @@ import XCTest
class GildedRoseTests: XCTestCase { class GildedRoseTests: XCTestCase {
func testFoo() { func testFoo() throws {
let items = [Item(name: "foo", sellIn: 0, quality: 0)] let items = [Item(name: "foo", sellIn: 0, quality: 0)]
let app = GildedRose(items: items) let app = GildedRose(items: items)
app.updateQuality() app.updateQuality()