From a810814a323b268e855b0821b411045c0a0ef5e3 Mon Sep 17 00:00:00 2001 From: Koleh David Date: Thu, 6 Feb 2025 14:23:27 +1030 Subject: [PATCH] r loop thru each indiv --- test_gilded_rose.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test_gilded_rose.py b/test_gilded_rose.py index 0529c06f..11f13323 100644 --- a/test_gilded_rose.py +++ b/test_gilded_rose.py @@ -12,13 +12,21 @@ class GildedRoseTest(unittest.TestCase): Item("Aged Brie", 0, 0), Item("Backstage passes to a TAFKAL80ETC concert", 0, 0), ] + input_Vals = [ + ("foo", 0, 0), + ("Aged Brie", 0, 0), + ("Backstage passes to a TAFKAL80ETC concert", 0, 0), + ] output_items = deepcopy(inputs) gilded_rose = GildedRose(output_items) gilded_rose.update_quality() to_approve = [] - for item in output_items: - to_approve.append(str(item)) + for item in input_Vals: + thing = Item(item[0], item[1], item[2]) + gilded_rose = GildedRose([thing]) + gilded_rose.update_quality() + to_approve.append(str(thing)) verify("\n".join(to_approve))