From ccabf6e847702278099fa18811621c287e16df05 Mon Sep 17 00:00:00 2001 From: Clay Dowling Date: Fri, 10 Mar 2017 21:22:50 -0500 Subject: [PATCH] First check for normal items --- c-check/test_rose.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/c-check/test_rose.c b/c-check/test_rose.c index cb91d270..1bf3fa7d 100644 --- a/c-check/test_rose.c +++ b/c-check/test_rose.c @@ -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;