diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index a7244ca6..ef450370 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -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): diff --git a/bin/score_outcomes/test_score_outcomes.py b/bin/score_outcomes/test_score_outcomes.py index c0dd6cc1..193da944 100644 --- a/bin/score_outcomes/test_score_outcomes.py +++ b/bin/score_outcomes/test_score_outcomes.py @@ -95,6 +95,9 @@ class Report(unittest.TestCase): def test_ranks_ties_by_their_mean_rank(self): self.assertAlmostEqual(rank_correlation([1, 1, 2, 2, 2], [1, 2, 3, 4, 5]), 0.866, places=3) self.assertAlmostEqual(rank_correlation([1, 1, 2, 3], [1, 2, 3, 4]), 0.949, places=3) + self.assertAlmostEqual(rank_correlation([1, 2, 3, 4], [1, 1, 2, 3]), 0.949, places=3) + + def test_ranks_an_outcome_that_holds_two_values(self): self.assertAlmostEqual(rank_correlation([1, 2, 3, 4, 5], [1, 1, 2, 2, 2]), 0.866, places=3) def test_gives_how_well_l_e_and_i_each_order_chunks_by_review_rounds_and_red_findings(self):