test_ship_cc: a product body one short of the Manufacturer slot is refused, not an IndexError
Kills mutant short-body-reads-past-end. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7f35c79ecc
commit
8a6816ed3e
1 changed files with 2 additions and 1 deletions
|
|
@ -237,7 +237,8 @@ class ProductMakerTests(ShipFileCase):
|
|||
|
||||
def test_a_product_with_no_manufacturer_is_refused_naming_no_input(self):
|
||||
canary = "canary-product-name"
|
||||
for body in ([None, canary, "Reliable."], [None, canary, None, None, None], [None, canary, None, None, ""],
|
||||
for body in ([None, canary, "Reliable."], [None, canary, None, None], [None, canary, None, None, None],
|
||||
[None, canary, None, None, ""],
|
||||
[None, canary, None, None, 7]):
|
||||
with self.subTest(body=body):
|
||||
self.setUp()
|
||||
|
|
|
|||
Loading…
Reference in a new issue