From 8442ed67628e5d51e02b876d0f27479f9215bf0a Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Sat, 8 Nov 2025 17:30:19 -0800 Subject: add more tests, fix issues, add support for booleans --- tests/type-consistency/spec/types.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/type-consistency/spec/types.ts (limited to 'tests/type-consistency/spec/types.ts') diff --git a/tests/type-consistency/spec/types.ts b/tests/type-consistency/spec/types.ts new file mode 100644 index 0000000..8bac271 --- /dev/null +++ b/tests/type-consistency/spec/types.ts @@ -0,0 +1,22 @@ +import path from "path"; +import { createTestHarness } from "../harness"; + +export default createTestHarness({ + harnessName: "Types", + generatedPath: path.join(__dirname, "..", "generated"), +}) + .createProgramTest({ + name: "Handles number inputs", + program: "1,2,3", + expected: [1, 2, 3], + }) + .createProgramTest({ + name: "Handles string inputs", + program: `"hello", "world"`, + expected: ["hello", "world"], + }) + .createProgramTest({ + name: "Handles boolean inputs", + program: `true, false`, + expected: [true, false], + }); -- cgit v1.2.3-70-g09d2