1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-09-16 09:06:36 +02:00

Finalize type tracking implementation and testing

Co-authored-by: ziflex <1607148+ziflex@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-31 04:09:59 +00:00
parent 0b0ae377ab
commit 2ed23d1eea

View File

@@ -51,6 +51,8 @@ func TestTypeTrackingIntegration(t *testing.T) {
{"Boolean variable", `LET x = TRUE RETURN x`, "x", core.TypeBool},
{"Array variable", `LET x = [1, 2, 3] RETURN x`, "x", core.TypeList},
{"Object variable", `LET x = {name: "test"} RETURN x`, "x", core.TypeMap},
{"Function call variable", `LET x = TYPENAME(1) RETURN x`, "x", core.TypeUnknown},
{"Expression variable", `LET x = 1 + 2 RETURN x`, "x", core.TypeUnknown},
}
for _, tt := range tests {