Skip to content

Commit

Permalink
Step #A2-8: Code Coverage, Pining down test for missing requirements.
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-taman committed Sep 26, 2020
1 parent 7d148a5 commit 6a4340b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Gilded Rose/src/test/java/com/gildedrose/GildedRoseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,11 @@ void backstagePassesQualityDropTo0() {
Item item = createAndUpdate("Backstage passes to a TAFKAL80ETC concert", 0, 25);
assertEquals(0, item.quality);
}

@Test
void agedBrieNeverExpires() {
Item item = createAndUpdate("Aged Brie", 0, 42);
assertEquals(-1, item.sellIn);
assertEquals(44, item.quality);
}
}

0 comments on commit 6a4340b

Please sign in to comment.