mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 20:32:15 +00:00
First check for normal items
This commit is contained in:
parent
c01ba7bc7f
commit
ccabf6e847
@ -14,6 +14,16 @@ START_TEST(normalitem_whenSellInPositive_decreasesQualityByOne)
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(normalitem_whenSellIsZero_decreasesQualityByOne)
|
||||
{
|
||||
Item items[1];
|
||||
init_item(items, NORMAL_ITEM, 0, 15);
|
||||
update_quality(items, 1);
|
||||
|
||||
ck_assert_int_eq(70, items[0].quality);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
TCase *tcase_rose(void)
|
||||
{
|
||||
TCase *tc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user