补充Gradium第三方语音评测及测试范围

This commit is contained in:
2026-10-30 05:58:54 +08:00
parent 8da38694bc
commit 5ee28cef98
7 changed files with 109 additions and 16 deletions
+7 -4
View File
@@ -24,8 +24,8 @@ test("research revisions share the authentication database and preserve replay l
assert.equal(consumeCode(config, "invalid"), "limited");
const initial = readResearchSnapshot();
assert.equal(initial.companies.length, 1013);
assert.equal(initial.evidence.length, 1078);
assert.equal(initial.observations.length, 145);
assert.equal(initial.evidence.length, 1080);
assert.equal(initial.observations.length, 148);
assert.deepEqual(readResearchSnapshot(), initial, "reopening does not duplicate records");
const db = openSiteDatabase();
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table'").all() as { name: string }[];
@@ -75,9 +75,12 @@ test("disclosure counts exclude client income, biographies, targets and duplicat
test("technical reviews keep accessible materials separate from tested capabilities", () => {
const snapshot = structuredClone(seed) as ResearchSnapshot;
assert.equal(snapshot.companies.filter((c) => c.technicalReview).length, 5);
assert.equal(snapshot.companies.filter((c) => c.technicalReview).length, 6);
assert.equal(snapshot.companies.filter((c) => c.technicalReview?.level === "public-artifact").length, 2);
assert.equal(snapshot.companies.filter((c) => c.technicalReview?.level === "independent-test").length, 0);
assert.equal(snapshot.companies.filter((c) => c.technicalReview?.level === "independent-test").length, 1);
assert.equal(snapshot.companies.find((c) => c.id === "AI051")?.revenueStatus, "unknown");
assert.match(snapshot.companies.find((c) => c.id === "AI051")!.technicalReview!.testScope!, /Sep 2026/);
assert.ok(snapshot.observations.filter((o) => o.id.startsWith("TECH-GRAD-O-")).every((o) => o.selection === "technical" && o.comparisonGroup === null));
const company = snapshot.companies.find((c) => c.id === "AI061")!;
const review = company.technicalReview!;
review.evidenceIds = ["missing-technical-evidence"];