silverbullet/common/expression_parser.test.ts

8 lines
266 B
TypeScript
Raw Normal View History

2024-07-30 23:24:17 +08:00
import { assertEquals } from "@std/assert";
import { parseExpression } from "$common/expression_parser.ts";
Deno.test("Test expression parser", () => {
2024-08-02 23:14:40 +08:00
// Just a sanity check here
assertEquals(parseExpression("1 + 2"), ["+", ["number", 1], ["number", 2]]);
});