First check for normal items

This commit is contained in:
Clay Dowling 2017-03-10 21:22:50 -05:00
parent c01ba7bc7f
commit ccabf6e847

View File

@ -14,6 +14,16 @@ START_TEST(normalitem_whenSellInPositive_decreasesQualityByOne)
} }
END_TEST 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 *tcase_rose(void)
{ {
TCase *tc; TCase *tc;