2024-07-30 23:24:17 +08:00
|
|
|
import { assertEquals } from "@std/assert";
|
2024-07-30 03:21:16 +08:00
|
|
|
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]]);
|
|
|
|
});
|