Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class GildedRoseTest {
@Test
fun `sulfuras never changes`() {
val items = arrayOf(Item(SULFURUS_NAME, Int.MAX_VALUE, 80))
val app = GildedRose(items)
app.updateQuality()
assertThat(items[0].name).isEqualTo(SULFURUS_NAME)
assertThat(items[0].sellIn).isEqualTo(Int.MAX_VALUE)
assertThat(items[0].quality).isEqualTo(80)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment