import { describe, expect, it } from "vitest";
import { confirmedReviewCorpus, ocrEvalCorpus, seedCorpus, validateConfirmedReviewCorpus } from ".";

describe("confirmed review corpus", () => {
  it("contains only human-confirmed review labels", () => {
    expect(validateConfirmedReviewCorpus()).toEqual([]);
  });

  it("does not duplicate eval case ids", () => {
    const ids = ocrEvalCorpus.map((entry) => entry.id);
    expect(new Set(ids).size).toBe(ids.length);
  });

  it("is included in the full OCR eval corpus", () => {
    expect(ocrEvalCorpus).toHaveLength(seedCorpus.length + confirmedReviewCorpus.length);
  });
});
