From 76d9fc438646a747071640ac9ee76ece469ec935 Mon Sep 17 00:00:00 2001 From: Koleh David Date: Thu, 6 Feb 2025 14:28:59 +1030 Subject: [PATCH] t increase coverage --- GildedRoseTest.test_foo.approved.txt | 6 ++++++ test_gilded_rose.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/GildedRoseTest.test_foo.approved.txt b/GildedRoseTest.test_foo.approved.txt index 30e78d41..86c49f66 100644 --- a/GildedRoseTest.test_foo.approved.txt +++ b/GildedRoseTest.test_foo.approved.txt @@ -1,3 +1,9 @@ +args: ('foo', -1) => 'foo, -1, -1' args: ('foo', 0) => 'foo, -1, 0' +args: ('foo', 1) => 'foo, -1, 0' +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: ('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' diff --git a/test_gilded_rose.py b/test_gilded_rose.py index b5914d1f..b4577e59 100644 --- a/test_gilded_rose.py +++ b/test_gilded_rose.py @@ -18,7 +18,7 @@ class GildedRoseTest(unittest.TestCase): "Backstage passes to a TAFKAL80ETC concert", ] - verify_all_combinations(self.do_stuff, [input_names, [0]]) + verify_all_combinations(self.do_stuff, [input_names, [-1, 0, 1]]) if __name__ == "__main__":