aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2025-01-26 20:15:39 +0100
committerThijs Schreijer <thijs@thijsschreijer.nl>2025-01-26 20:15:39 +0100
commitf697ea7e7603e916d5ee13327fcdaf9c811a00aa (patch)
treee044dec90ee1cc497ac0cf1d9892aee11089a3e5 /spec
parent85ad15fbd8c81807a1a662f5b6060641fa3a6357 (diff)
downloadluasystem-f697ea7e7603e916d5ee13327fcdaf9c811a00aa.tar.gz
luasystem-f697ea7e7603e916d5ee13327fcdaf9c811a00aa.tar.bz2
luasystem-f697ea7e7603e916d5ee13327fcdaf9c811a00aa.zip
feat(terminal): check ambiguous unicode widthunicode/ambiguous
Diffstat (limited to 'spec')
-rw-r--r--spec/04-term_spec.lua6
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