squiggle/packages/squiggle-lang/__tests__/JS__Test.ts

12 lines
341 B
TypeScript
Raw Normal View History

2022-02-18 02:16:31 +00:00
import { run } from '../src/js/index';
describe("A simple result", () => {
test("mean(normal(5,2))", () => {
expect(run("mean(normal(5,2))")).toEqual({ tag: 'Ok', value: {hd: { NAME: 'Float', VAL: 5 }, tl: 0} });
});
test("10+10", () => {
let foo = run("normal(5,2)");
expect(1).toEqual(1);
});
});