Add type to KclValue::Number (#5380)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-02-14 13:03:23 +13:00
committed by GitHub
parent f37fc357af
commit 8c5662e458
89 changed files with 7105 additions and 1167 deletions

View File

@ -14,6 +14,7 @@ describe('KCL expression calculations', () => {
variables['x'] = {
type: 'Number',
value: 2,
ty: { type: 'Any' },
__meta: [],
}
const actual = await getCalculatedKclExpressionValue('1 + x', variables)
@ -32,6 +33,7 @@ describe('KCL expression calculations', () => {
variables['y'] = {
type: 'Number',
value: 2,
ty: { type: 'Any' },
__meta: [],
}
const actual = await getCalculatedKclExpressionValue('1 + x', variables)
@ -44,6 +46,7 @@ describe('KCL expression calculations', () => {
variables['x'] = {
type: 'Number',
value: 2,
ty: { type: 'Any' },
__meta: [],
}
const actual = await getCalculatedKclExpressionValue(