squiggle/packages/squiggle-lang/__tests__/Reducer/Reducer_Value_test.res
Vyacheslav Matyukhin c337211af6
rename tests
2022-09-24 20:39:09 +04:00

15 lines
344 B
Plaintext

open Jest
open Expect
describe("ExpressionValue", () => {
test("argsToString", () =>
expect([IEvNumber(1.), IEvString("a")]->Reducer_Value.argsToString)->toBe("1,'a'")
)
test("toStringFunctionCall", () =>
expect(("fn", [IEvNumber(1.), IEvString("a")])->Reducer_Value.toStringFunctionCall)->toBe(
"fn(1,'a')",
)
)
})