silverbullet/common/expression_parser.test.ts

8 lines
270 B
TypeScript

import { assertEquals } from "@std/assert";
import { parseExpression } from "$common/expression_parser.ts";
Deno.test("Test expression parser", () => {
// Just a sanity check here
assertEquals(parseExpression("1 + 2"), ["+", ["number", 1], ["number", 2]]);
});