diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2025-01-26 20:15:39 +0100 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2025-01-26 20:15:39 +0100 |
| commit | f697ea7e7603e916d5ee13327fcdaf9c811a00aa (patch) | |
| tree | e044dec90ee1cc497ac0cf1d9892aee11089a3e5 /spec | |
| parent | 85ad15fbd8c81807a1a662f5b6060641fa3a6357 (diff) | |
| download | luasystem-unicode/ambiguous.tar.gz luasystem-unicode/ambiguous.tar.bz2 luasystem-unicode/ambiguous.zip | |
feat(terminal): check ambiguous unicode widthunicode/ambiguous
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/04-term_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/04-term_spec.lua b/spec/04-term_spec.lua index 813947a..711059b 100644 --- a/spec/04-term_spec.lua +++ b/spec/04-term_spec.lua | |||
| @@ -539,6 +539,12 @@ describe("Terminal:", function() | |||
| 539 | assert.same({2}, {system.utf8cwidth(ch2 .. ch3 .. ch4)}) | 539 | assert.same({2}, {system.utf8cwidth(ch2 .. ch3 .. ch4)}) |
| 540 | end) | 540 | end) |
| 541 | 541 | ||
| 542 | it("returns 2nd ambigious boolean value only if requested", function() | ||
| 543 | assert.same({1}, {system.utf8cwidth("¡", false)}) | ||
| 544 | assert.same({1, true}, {system.utf8cwidth("¡", true)}) | ||
| 545 | assert.same({1, false}, {system.utf8cwidth("a", true)}) | ||
| 546 | end) | ||
| 547 | |||
| 542 | end) | 548 | end) |
| 543 | 549 | ||
| 544 | 550 | ||
