aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
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