W7/W8:先修图扩到 4-6 年级(80 点/106 边,草稿) + 连错三次也退一层(270 测试)

This commit is contained in:
dsh
2026-11-24 20:25:25 +08:00
parent dfc9656eb2
commit b470d189fc
6 changed files with 1140 additions and 113 deletions
+3 -3
View File
@@ -35,10 +35,10 @@ class GraphShapeTest(unittest.TestCase):
self.assertEqual(missing, [], f"这些知识点在 kpt.json 里找不到:{missing}")
def test_size_is_mini(self):
"""迷你图就该迷你:30–60 个点、40–90 条边。"""
"""先修图:1–3 年级已审、4–6 年级是草稿;规模 60–90 个点、80–120 条边。"""
topics, par = kp_graph._load()
self.assertTrue(30 <= len(topics) <= 60, len(topics))
self.assertTrue(40 <= sum(len(v) for v in par.values()) <= 90)
self.assertTrue(60 <= len(topics) <= 90, len(topics))
self.assertTrue(80 <= sum(len(v) for v in par.values()) <= 120)
def test_every_edge_has_reason(self):
"""每条边都要写人话理由——家长点开要能看懂「为什么退到这」。"""