mirror of
https://github.com/TextPlace/CoreTextPlace.git
synced 2025-10-15 00:23:43 +00:00
test: more tests
This commit is contained in:
parent
302d6cef3e
commit
9a4927f9b2
6 changed files with 86 additions and 6 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue