mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 17:21:38 +00:00
t swap input order
This commit is contained in:
parent
31938050e3
commit
89c3754f19
@ -1,24 +1,24 @@
|
||||
args: ('foo', -1, 0) => 'foo, -1, -1'
|
||||
args: ('foo', 0, -1) => 'foo, -1, -1'
|
||||
args: ('foo', 0, 0) => 'foo, -1, 0'
|
||||
args: ('foo', 1, 0) => 'foo, -1, 0'
|
||||
args: ('foo', 49, 0) => 'foo, -1, 47'
|
||||
args: ('foo', 50, 0) => 'foo, -1, 48'
|
||||
args: ('foo', 51, 0) => 'foo, -1, 49'
|
||||
args: ('Aged Brie', -1, 0) => 'Aged Brie, -1, 1'
|
||||
args: ('foo', 0, 1) => 'foo, -1, 0'
|
||||
args: ('foo', 0, 49) => 'foo, -1, 47'
|
||||
args: ('foo', 0, 50) => 'foo, -1, 48'
|
||||
args: ('foo', 0, 51) => 'foo, -1, 49'
|
||||
args: ('Aged Brie', 0, -1) => 'Aged Brie, -1, 1'
|
||||
args: ('Aged Brie', 0, 0) => 'Aged Brie, -1, 2'
|
||||
args: ('Aged Brie', 1, 0) => 'Aged Brie, -1, 3'
|
||||
args: ('Aged Brie', 49, 0) => 'Aged Brie, -1, 50'
|
||||
args: ('Aged Brie', 50, 0) => 'Aged Brie, -1, 50'
|
||||
args: ('Aged Brie', 51, 0) => 'Aged Brie, -1, 51'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', -1, 0) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Aged Brie', 0, 1) => 'Aged Brie, -1, 3'
|
||||
args: ('Aged Brie', 0, 49) => 'Aged Brie, -1, 50'
|
||||
args: ('Aged Brie', 0, 50) => 'Aged Brie, -1, 50'
|
||||
args: ('Aged Brie', 0, 51) => 'Aged Brie, -1, 51'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 0, -1) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 0, 0) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 1, 0) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 49, 0) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 50, 0) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 51, 0) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Sulfuras, Hand of Ragnaros', -1, 0) => 'Sulfuras, Hand of Ragnaros, 0, -1'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 0, 1) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 0, 49) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 0, 50) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 0, 51) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 0, -1) => 'Sulfuras, Hand of Ragnaros, 0, -1'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 0, 0) => 'Sulfuras, Hand of Ragnaros, 0, 0'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 1, 0) => 'Sulfuras, Hand of Ragnaros, 0, 1'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 49, 0) => 'Sulfuras, Hand of Ragnaros, 0, 49'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 50, 0) => 'Sulfuras, Hand of Ragnaros, 0, 50'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 51, 0) => 'Sulfuras, Hand of Ragnaros, 0, 51'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 0, 1) => 'Sulfuras, Hand of Ragnaros, 0, 1'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 0, 49) => 'Sulfuras, Hand of Ragnaros, 0, 49'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 0, 50) => 'Sulfuras, Hand of Ragnaros, 0, 50'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 0, 51) => 'Sulfuras, Hand of Ragnaros, 0, 51'
|
||||
|
||||
@ -5,7 +5,7 @@ from approvaltests.combination_approvals import verify_all_combinations
|
||||
|
||||
|
||||
class GildedRoseTest(unittest.TestCase):
|
||||
def do_stuff(self, name, quality=0, sell_in=0):
|
||||
def do_stuff(self, name, sell_in=0, quality=0):
|
||||
item = Item(name, sell_in, quality)
|
||||
gilded_rose = GildedRose([item])
|
||||
gilded_rose.update_quality()
|
||||
@ -20,7 +20,7 @@ class GildedRoseTest(unittest.TestCase):
|
||||
]
|
||||
input_qualities = [-1, 0, 1, 49, 50, 51]
|
||||
|
||||
verify_all_combinations(self.do_stuff, [input_names, input_qualities, [0]])
|
||||
verify_all_combinations(self.do_stuff, [input_names, [0], input_qualities])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user