8 lines
282 B
TypeScript
8 lines
282 B
TypeScript
|
import { assertEquals } from "$std/testing/asserts.ts";
|
||
|
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]]);
|
||
|
});
|