mirror of
https://github.com/TextPlace/CoreTextPlace.git
synced 2025-08-18 14:12:40 +00:00
fix: dirty fix for char width
This commit is contained in:
parent
4dd8121ebb
commit
7923680e80
3 changed files with 9 additions and 2 deletions
|
@ -32,6 +32,12 @@ Deno.test("getCharacterWidth CJK", () => {
|
|||
assertThrows(() => getCharacterWidth("ヨスガノ"));
|
||||
});
|
||||
|
||||
Deno.test("getCharacterWidth Emoji", () => {
|
||||
assertEquals(getCharacterWidth("👋"), 2);
|
||||
assertEquals(getCharacterWidth("🌲️"), 2);
|
||||
assertEquals(getCharacterWidth("👨👩👧👦"), 2);
|
||||
});
|
||||
|
||||
Deno.test("getCharacterWidth previously faulty cases", () => {
|
||||
assertEquals(getCharacterWidth("𤲶"), 2);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue