diff --git a/GildedRoseTest.test_update_quality.approved.txt b/GildedRoseTest.test_update_quality.approved.txt index c7bb94d4..e530d984 100644 --- a/GildedRoseTest.test_update_quality.approved.txt +++ b/GildedRoseTest.test_update_quality.approved.txt @@ -4,21 +4,93 @@ 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: ('foo', 10, -1) => 'foo, 9, -1' +args: ('foo', 10, 0) => 'foo, 9, 0' +args: ('foo', 10, 1) => 'foo, 9, 0' +args: ('foo', 10, 49) => 'foo, 9, 48' +args: ('foo', 10, 50) => 'foo, 9, 49' +args: ('foo', 10, 51) => 'foo, 9, 50' +args: ('foo', 11, -1) => 'foo, 10, -1' +args: ('foo', 11, 0) => 'foo, 10, 0' +args: ('foo', 11, 1) => 'foo, 10, 0' +args: ('foo', 11, 49) => 'foo, 10, 48' +args: ('foo', 11, 50) => 'foo, 10, 49' +args: ('foo', 11, 51) => 'foo, 10, 50' +args: ('foo', 12, -1) => 'foo, 11, -1' +args: ('foo', 12, 0) => 'foo, 11, 0' +args: ('foo', 12, 1) => 'foo, 11, 0' +args: ('foo', 12, 49) => 'foo, 11, 48' +args: ('foo', 12, 50) => 'foo, 11, 49' +args: ('foo', 12, 51) => 'foo, 11, 50' args: ('Aged Brie', 0, -1) => 'Aged Brie, -1, 1' args: ('Aged Brie', 0, 0) => 'Aged Brie, -1, 2' 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: ('Aged Brie', 10, -1) => 'Aged Brie, 9, 0' +args: ('Aged Brie', 10, 0) => 'Aged Brie, 9, 1' +args: ('Aged Brie', 10, 1) => 'Aged Brie, 9, 2' +args: ('Aged Brie', 10, 49) => 'Aged Brie, 9, 50' +args: ('Aged Brie', 10, 50) => 'Aged Brie, 9, 50' +args: ('Aged Brie', 10, 51) => 'Aged Brie, 9, 51' +args: ('Aged Brie', 11, -1) => 'Aged Brie, 10, 0' +args: ('Aged Brie', 11, 0) => 'Aged Brie, 10, 1' +args: ('Aged Brie', 11, 1) => 'Aged Brie, 10, 2' +args: ('Aged Brie', 11, 49) => 'Aged Brie, 10, 50' +args: ('Aged Brie', 11, 50) => 'Aged Brie, 10, 50' +args: ('Aged Brie', 11, 51) => 'Aged Brie, 10, 51' +args: ('Aged Brie', 12, -1) => 'Aged Brie, 11, 0' +args: ('Aged Brie', 12, 0) => 'Aged Brie, 11, 1' +args: ('Aged Brie', 12, 1) => 'Aged Brie, 11, 2' +args: ('Aged Brie', 12, 49) => 'Aged Brie, 11, 50' +args: ('Aged Brie', 12, 50) => 'Aged Brie, 11, 50' +args: ('Aged Brie', 12, 51) => 'Aged Brie, 11, 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', 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: ('Backstage passes to a TAFKAL80ETC concert', 10, -1) => 'Backstage passes to a TAFKAL80ETC concert, 9, 1' +args: ('Backstage passes to a TAFKAL80ETC concert', 10, 0) => 'Backstage passes to a TAFKAL80ETC concert, 9, 2' +args: ('Backstage passes to a TAFKAL80ETC concert', 10, 1) => 'Backstage passes to a TAFKAL80ETC concert, 9, 3' +args: ('Backstage passes to a TAFKAL80ETC concert', 10, 49) => 'Backstage passes to a TAFKAL80ETC concert, 9, 50' +args: ('Backstage passes to a TAFKAL80ETC concert', 10, 50) => 'Backstage passes to a TAFKAL80ETC concert, 9, 50' +args: ('Backstage passes to a TAFKAL80ETC concert', 10, 51) => 'Backstage passes to a TAFKAL80ETC concert, 9, 51' +args: ('Backstage passes to a TAFKAL80ETC concert', 11, -1) => 'Backstage passes to a TAFKAL80ETC concert, 10, 0' +args: ('Backstage passes to a TAFKAL80ETC concert', 11, 0) => 'Backstage passes to a TAFKAL80ETC concert, 10, 1' +args: ('Backstage passes to a TAFKAL80ETC concert', 11, 1) => 'Backstage passes to a TAFKAL80ETC concert, 10, 2' +args: ('Backstage passes to a TAFKAL80ETC concert', 11, 49) => 'Backstage passes to a TAFKAL80ETC concert, 10, 50' +args: ('Backstage passes to a TAFKAL80ETC concert', 11, 50) => 'Backstage passes to a TAFKAL80ETC concert, 10, 50' +args: ('Backstage passes to a TAFKAL80ETC concert', 11, 51) => 'Backstage passes to a TAFKAL80ETC concert, 10, 51' +args: ('Backstage passes to a TAFKAL80ETC concert', 12, -1) => 'Backstage passes to a TAFKAL80ETC concert, 11, 0' +args: ('Backstage passes to a TAFKAL80ETC concert', 12, 0) => 'Backstage passes to a TAFKAL80ETC concert, 11, 1' +args: ('Backstage passes to a TAFKAL80ETC concert', 12, 1) => 'Backstage passes to a TAFKAL80ETC concert, 11, 2' +args: ('Backstage passes to a TAFKAL80ETC concert', 12, 49) => 'Backstage passes to a TAFKAL80ETC concert, 11, 50' +args: ('Backstage passes to a TAFKAL80ETC concert', 12, 50) => 'Backstage passes to a TAFKAL80ETC concert, 11, 50' +args: ('Backstage passes to a TAFKAL80ETC concert', 12, 51) => 'Backstage passes to a TAFKAL80ETC concert, 11, 51' 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', 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' +args: ('Sulfuras, Hand of Ragnaros', 10, -1) => 'Sulfuras, Hand of Ragnaros, 10, -1' +args: ('Sulfuras, Hand of Ragnaros', 10, 0) => 'Sulfuras, Hand of Ragnaros, 10, 0' +args: ('Sulfuras, Hand of Ragnaros', 10, 1) => 'Sulfuras, Hand of Ragnaros, 10, 1' +args: ('Sulfuras, Hand of Ragnaros', 10, 49) => 'Sulfuras, Hand of Ragnaros, 10, 49' +args: ('Sulfuras, Hand of Ragnaros', 10, 50) => 'Sulfuras, Hand of Ragnaros, 10, 50' +args: ('Sulfuras, Hand of Ragnaros', 10, 51) => 'Sulfuras, Hand of Ragnaros, 10, 51' +args: ('Sulfuras, Hand of Ragnaros', 11, -1) => 'Sulfuras, Hand of Ragnaros, 11, -1' +args: ('Sulfuras, Hand of Ragnaros', 11, 0) => 'Sulfuras, Hand of Ragnaros, 11, 0' +args: ('Sulfuras, Hand of Ragnaros', 11, 1) => 'Sulfuras, Hand of Ragnaros, 11, 1' +args: ('Sulfuras, Hand of Ragnaros', 11, 49) => 'Sulfuras, Hand of Ragnaros, 11, 49' +args: ('Sulfuras, Hand of Ragnaros', 11, 50) => 'Sulfuras, Hand of Ragnaros, 11, 50' +args: ('Sulfuras, Hand of Ragnaros', 11, 51) => 'Sulfuras, Hand of Ragnaros, 11, 51' +args: ('Sulfuras, Hand of Ragnaros', 12, -1) => 'Sulfuras, Hand of Ragnaros, 12, -1' +args: ('Sulfuras, Hand of Ragnaros', 12, 0) => 'Sulfuras, Hand of Ragnaros, 12, 0' +args: ('Sulfuras, Hand of Ragnaros', 12, 1) => 'Sulfuras, Hand of Ragnaros, 12, 1' +args: ('Sulfuras, Hand of Ragnaros', 12, 49) => 'Sulfuras, Hand of Ragnaros, 12, 49' +args: ('Sulfuras, Hand of Ragnaros', 12, 50) => 'Sulfuras, Hand of Ragnaros, 12, 50' +args: ('Sulfuras, Hand of Ragnaros', 12, 51) => 'Sulfuras, Hand of Ragnaros, 12, 51' diff --git a/test_gilded_rose.py b/test_gilded_rose.py index 8d997c29..c90d5bb1 100644 --- a/test_gilded_rose.py +++ b/test_gilded_rose.py @@ -20,7 +20,9 @@ class GildedRoseTest(unittest.TestCase): ] input_qualities = [-1, 0, 1, 49, 50, 51] - verify_all_combinations(self.do_stuff, [input_names, [0], input_qualities]) + verify_all_combinations( + self.do_stuff, [input_names, [0, 10, 11, 12], input_qualities] + ) if __name__ == "__main__":