Skip to content

Instantly share code, notes, and snippets.

@GeePawHill
Created September 22, 2022 15:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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