Skip to content

Instantly share code, notes, and snippets.

@GeePawHill
Created September 22, 2022 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GeePawHill/6d64d0dbf10de60b5491c56b0ec9cf67 to your computer and use it in GitHub Desktop.
Save GeePawHill/6d64d0dbf10de60b5491c56b0ec9cf67 to your computer and use it in GitHub Desktop.
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