mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-11 04:31:21 +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("Aged Brie", 0, 0),
|
||||||
Item("Backstage passes to a TAFKAL80ETC concert", 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)
|
output_items = deepcopy(inputs)
|
||||||
gilded_rose = GildedRose(output_items)
|
gilded_rose = GildedRose(output_items)
|
||||||
gilded_rose.update_quality()
|
gilded_rose.update_quality()
|
||||||
|
|
||||||
to_approve = []
|
to_approve = []
|
||||||
for item in output_items:
|
for item in input_Vals:
|
||||||
to_approve.append(str(item))
|
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))
|
verify("\n".join(to_approve))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user