Answer prose round 1: split the record-scoring help into one idea per sentence, name the chunk's entries once, fold the changelog bullet into the bullets it changes, and give the decision's amendment its own paragraph

This commit is contained in:
2026-10-09 11:31:17 +02:00
parent c386163a5f
commit 6a8bbcfff9
9 changed files with 39 additions and 37 deletions
+3 -3
View File
@@ -80,7 +80,7 @@ class Seats(unittest.TestCase):
found = [decimal.Decimal(score) for score in ("6", "6.5", "7", "6", "6")]
ratchet = "Ratchet: the paired ruling counts as worse, as Locality and Shape fell and Locality is 6.5, under the floor of 7.0."
self.assertEqual(fall_outcome(["Locality", "Shape"], found), (ratchet, [ratchet]))
self.assertEqual(fall_outcome(["Shape"], found), ("The paired ruling stands: Shape fell and stays at or above the floor of 7.0.", []))
self.assertEqual(fall_outcome(["Shape"], found), ("The paired ruling stands: Shape fell and each stays at or above the floor of 7.0.", []))
self.assertIsNone(fall_outcome([], found))
def test_rules_by_a_lead_of_two_and_splits_two_seats_that_differ(self):
@@ -315,14 +315,14 @@ class LarvReviewTool(unittest.TestCase):
seats = "".join(f"\n{seat}: {line}\n" for seat in ("Junior A", "Mid A", "Maintainability senior", "Inherited architect"))
scored = self.run_tool("record-scoring", self.seats_file(f"PR #2 at {self.start}\n" + seats))
self.assertIn("Ratchet: the paired ruling counts as worse, as Locality fell and Locality is 6.50, under the floor of 7.0.", scored.stdout)
self.assertIn("blocking nothing on a run due for no reason besides a fall: Locality 6.50.", scored.stdout)
self.assertIn("blocking nothing, as only a fall called this run: Locality 6.50.", scored.stdout)
self.assertIn("\n\nRatchet: the paired ruling counts as worse", (self.checkout / "docs" / "comprehension-history.md").read_text())
self.assertTrue(self.run_tool("needs-scoring-run", "2").stdout.startswith("No scoring run due.\nStill standing: Ratchet:"))
same = self.run_tool("record-ruling", self.seats_file(f"PR #3 at {self.start}, against {self.start}\n\nMid A: {said('same', 'worse')}{place}Inherited architect: {said('same', 'worse')}{place}"))
self.assertIn("Fell: Locality.", same.stdout, same.stderr)
stands = self.run_tool("record-scoring", self.seats_file(f"PR #2 at {self.start}\n" + seats.replace("Locality 6.5", "Locality 7")))
self.assertIn("The paired ruling stands: Locality fell and stays at or above the floor of 7.0.", stands.stdout)
self.assertIn("The paired ruling stands: Locality fell and each stays at or above the floor of 7.0.", stands.stdout)
def test_names_no_fall_on_a_worse_ruling(self):
place = "\n\n- Locality, Overall: `bin/a.py:3` `f`: longer\n\n"