mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-06 02:02:31 +00:00
t test for sellin
This commit is contained in:
parent
4dc3033352
commit
31938050e3
@ -1,24 +1,24 @@
|
||||
args: ('foo', -1) => 'foo, -1, -1'
|
||||
args: ('foo', 0) => 'foo, -1, 0'
|
||||
args: ('foo', 1) => 'foo, -1, 0'
|
||||
args: ('foo', 49) => 'foo, -1, 47'
|
||||
args: ('foo', 50) => 'foo, -1, 48'
|
||||
args: ('foo', 51) => 'foo, -1, 49'
|
||||
args: ('Aged Brie', -1) => 'Aged Brie, -1, 1'
|
||||
args: ('Aged Brie', 0) => 'Aged Brie, -1, 2'
|
||||
args: ('Aged Brie', 1) => 'Aged Brie, -1, 3'
|
||||
args: ('Aged Brie', 49) => 'Aged Brie, -1, 50'
|
||||
args: ('Aged Brie', 50) => 'Aged Brie, -1, 50'
|
||||
args: ('Aged Brie', 51) => 'Aged Brie, -1, 51'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', -1) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 0) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 1) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 49) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 50) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Backstage passes to a TAFKAL80ETC concert', 51) => 'Backstage passes to a TAFKAL80ETC concert, -1, 0'
|
||||
args: ('Sulfuras, Hand of Ragnaros', -1) => 'Sulfuras, Hand of Ragnaros, 0, -1'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 0) => 'Sulfuras, Hand of Ragnaros, 0, 0'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 1) => 'Sulfuras, Hand of Ragnaros, 0, 1'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 49) => 'Sulfuras, Hand of Ragnaros, 0, 49'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 50) => 'Sulfuras, Hand of Ragnaros, 0, 50'
|
||||
args: ('Sulfuras, Hand of Ragnaros', 51) => 'Sulfuras, Hand of Ragnaros, 0, 51'
|
||||
args: ('foo', -1, 0) => '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: ('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: ('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: ('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'
|
||||
|
||||
@ -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])
|
||||
verify_all_combinations(self.do_stuff, [input_names, input_qualities, [0]])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user