From 7d53d3cfcb1dd6a231a7e942c71ad93adc296c6a Mon Sep 17 00:00:00 2001 From: Koleh David Date: Thu, 6 Feb 2025 14:48:33 +1030 Subject: [PATCH] t increase coverage --- GildedRoseTest.test_foo.approved.txt | 12 ++++++++++++ test_gilded_rose.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/GildedRoseTest.test_foo.approved.txt b/GildedRoseTest.test_foo.approved.txt index 10cd987b..45a00d19 100644 --- a/GildedRoseTest.test_foo.approved.txt +++ b/GildedRoseTest.test_foo.approved.txt @@ -1,12 +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' diff --git a/test_gilded_rose.py b/test_gilded_rose.py index 190ac6df..c7d94f88 100644 --- a/test_gilded_rose.py +++ b/test_gilded_rose.py @@ -19,7 +19,7 @@ class GildedRoseTest(unittest.TestCase): "Sulfuras, Hand of Ragnaros", ] - verify_all_combinations(self.do_stuff, [input_names, [-1, 0, 1]]) + verify_all_combinations(self.do_stuff, [input_names, [-1, 0, 1, 49, 50, 51]]) if __name__ == "__main__":