Answer principles round 4: 0 🔴, 1 🟡; test a tied outcomes side that unranked values would miss, and the levels' lowest values in a test of their own

This commit is contained in:
2026-10-16 18:14:50 +02:00
parent 4209c13380
commit 27d8632e99
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -603,6 +603,8 @@ class Routing(unittest.TestCase):
with self.subTest(item=item, likelihood=likelihood, escape_and_impact=escape_and_impact):
with self.assertRaises(ValueError):
Route(self.HIGH, item, likelihood, escape_and_impact)
def test_takes_a_route_whose_item_holds_each_levels_lowest_value(self):
self.assertEqual(Route(self.HIGH, 3, 1, 2).escape_and_impact, 2)
def test_routes_nothing_on_an_item_without_e_or_i(self):