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
@@ -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):