diff --git a/tool/sample-synthetic-data.ts b/tool/sample-synthetic-data.ts index 9f6af2408..e0a9a0232 100644 --- a/tool/sample-synthetic-data.ts +++ b/tool/sample-synthetic-data.ts @@ -128,6 +128,8 @@ function toThingtalkValue(classDef : Ast.ClassDef, return { value: new Ast.Value.String(value), op: "=~" }; if (type === Type.Number) return { value: new Ast.Value.Number(parseFloat(value)), op: "==" }; + if (type instanceof Type.Measure) + return { value: new Ast.Value.Measure(parseFloat(value), type.unit), op: "==" }; if (type instanceof Type.Array) { type = type.elem as Type; if (type instanceof Type.Entity) {