test: more tests

This commit is contained in:
Shibo Lyu 2024-05-04 22:17:19 +08:00
parent 302d6cef3e
commit 9a4927f9b2
6 changed files with 86 additions and 6 deletions

View file

@ -112,4 +112,12 @@ Deno.test("section", async (t) => {
assertEquals(section.ch[0][1], " ");
assertEquals(section.width[0][0], 2);
});
await t.step("applyChange incorrect section", () => {
assertThrows(() => {
assert(section);
applyChange({ x: 6, y: 3, ch: "あ" }, section);
});
});
});