补核6项缺年候选并以登记证据纳入Zymbly

This commit is contained in:
2026-10-31 16:38:01 +08:00
parent ac04839571
commit baaea4fc61
6 changed files with 489 additions and 14 deletions
+4 -4
View File
@@ -23,8 +23,8 @@ test("research revisions share the authentication database and preserve replay l
for (let i = 0; i < 20; i++) consumeCode(config, "invalid");
assert.equal(consumeCode(config, "invalid"), "limited");
const initial = readResearchSnapshot();
assert.equal(initial.companies.length, 1154);
assert.equal(initial.evidence.length, 3375);
assert.equal(initial.companies.length, 1155);
assert.equal(initial.evidence.length, 3401);
assert.equal(initial.observations.length, 453);
assert.deepEqual(initial.candidateBatches, seed.candidateBatches, "candidate gaps persist in the same database metadata");
assert.deepEqual(initial.directoryRechecks, seed.directoryRechecks, "follow-up classifications persist without rewriting the discovery audit");
@@ -85,7 +85,7 @@ test("reviews link explicit companies without turning global or excluded cases i
test("disclosure counts exclude client income, biographies, targets and duplicate milestones", () => {
const snapshot = seed as ResearchSnapshot;
const summary = categorySummary(snapshot);
assert.equal(summary.reduce((n, c) => n + c.count, 0), 1154);
assert.equal(summary.reduce((n, c) => n + c.count, 0), 1155);
assert.equal(summary.reduce((n, c) => n + c.self, 0), 58);
assert.equal(summary.reduce((n, c) => n + c.estimate, 0), 2);
assert.equal(summary.reduce((n, c) => n + c.platform, 0), 19);
@@ -406,7 +406,7 @@ test("unreconciled directory financials remain source reviews instead of income
assert.ok(review.evidenceIds.includes("PH-TANA-DR"));
assert.equal(reviewCompanyIds(snapshot, review).length, 0);
assert.ok(!snapshot.observations.some((o) => o.evidence === "PH-TANA-DR"));
assert.equal(snapshot.candidateBatches!.flatMap((b) => b.records).filter((r) => r.status === "pending-year").length, 34);
assert.equal(snapshot.candidateBatches!.flatMap((b) => b.records).filter((r) => r.status === "pending-year").length, 39);
});
test("product pivots and founder histories do not become new company years or current revenue", () => {