squiggle/packages/squiggle-lang/__tests__/ReducerInterface/ReducerInterface_ExpressionValue_test.res

12 lines
332 B
Plaintext
Raw Normal View History

2022-03-29 09:09:59 +00:00
open ReducerInterface.ExpressionValue
2022-03-24 12:41:31 +00:00
open Jest
open Expect
2022-03-29 09:09:59 +00:00
describe("ExpressionValue", () => {
2022-03-30 10:53:36 +00:00
test("argsToString", () => expect([EvNumber(1.), EvString("a")]->argsToString)->toBe("1, 'a'"))
2022-03-24 12:41:31 +00:00
2022-03-30 10:53:36 +00:00
test("toStringFunctionCall", () =>
expect(("fn", [EvNumber(1.), EvString("a")])->toStringFunctionCall)->toBe("fn(1, 'a')")
2022-03-24 12:41:31 +00:00
)
})