From 93992029bd349185d15de02e0f633e95c62695a9 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Sun, 9 Nov 2025 12:34:02 -0800 Subject: tostring test, fixes --- tests/type-consistency/harness.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/type-consistency/harness.ts') diff --git a/tests/type-consistency/harness.ts b/tests/type-consistency/harness.ts index a08e397..0102387 100644 --- a/tests/type-consistency/harness.ts +++ b/tests/type-consistency/harness.ts @@ -64,13 +64,13 @@ describe(\`${harnessName}\`, () => { }) { tests.push(`describe(\`${name}\`, () => { const PROGRAM = \`${program}\` as const; + const fn = createFn()(PROGRAM) ${cases.map( ({ input, output }) => `test(\`${JSON.stringify( input )} -> ${JSON.stringify(output)}\`, () => { const input: ${JSON.stringify(input)} = ${JSON.stringify(input)}; const expected: ${JSON.stringify(output)} = ${JSON.stringify(output)}; - const fn = createFn()(PROGRAM) const result = fn(input) expect(result).toStrictEqual(expected); -- cgit v1.2.3-70-g09d2