mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-07 18:52:19 +00:00
r loop thru each indiv
This commit is contained in:
parent
c7e24b66cd
commit
a810814a32
@ -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))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user