Created
September 22, 2022 15:45
-
-
Save GeePawHill/6d64d0dbf10de60b5491c56b0ec9cf67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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