Answer architecture round 2: 0 🔴, 1 🟡; join prose lists with one markdown_text.listed, and floor the replays at lowest_worker_rung

This commit is contained in:
2026-10-16 12:18:03 +02:00
parent 12909f233d
commit f319a96e7e
11 changed files with 40 additions and 34 deletions
+7
View File
@@ -21,5 +21,12 @@ class Sections(unittest.TestCase):
self.assertEqual(markdown_text.quoted("merged\n\nPR #1"), "> merged\n> \n> PR #1")
class Listed(unittest.TestCase):
def test_joins_names_with_commas_and_the_conjunction_before_the_last(self):
self.assertEqual(markdown_text.listed(["a"], "and"), "a")
self.assertEqual(markdown_text.listed(["a", "b"], "and"), "a and b")
self.assertEqual(markdown_text.listed(("a", "b", "c"), "or"), "a, b or c")
if __name__ == "__main__":
unittest.main()