refactor: return complete tool results inline

This commit is contained in:
morluto
2026-09-29 07:08:46 +08:00
parent 2160d4fae5
commit 0d96275b68
535 changed files with 4084 additions and 13537 deletions
@@ -25,14 +25,16 @@ describe("source-built conformance fixtures", () => {
expect(source).toContain(HOPPER_C_ORACLE.globalName);
});
it("generates a deterministic large pagination fixture", () => {
it("generates a deterministic large complete-inventory fixture", () => {
const first = generateLargeFixture();
const second = generateLargeFixture();
expect(first).toBe(second);
expect(first.match(/int rea_page_/gu)).toHaveLength(LARGE_FIXTURE_COUNT);
expect(first).toContain("rea_page_0000");
expect(first).toContain("rea_page_1204");
expect(first.match(/int rea_inventory_/gu)).toHaveLength(
LARGE_FIXTURE_COUNT,
);
expect(first).toContain("rea_inventory_0000");
expect(first).toContain("rea_inventory_1204");
expect(() => generateLargeFixture(0)).toThrow(/positive integer/u);
});