1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Add test Reline::Unicode.test_get_mbchar_width.

https://github.com/ruby/reline/commit/301e9048fc
This commit is contained in:
manga_osyo 2020-11-12 13:42:29 +09:00 committed by aycabta
parent e47e5db889
commit 21f26018d2

View file

@ -0,0 +1,12 @@
require_relative 'helper'
require "reline/unicode"
class Reline::Unicode::Test < Reline::TestCase
def setup
Reline.send(:test_mode)
end
def test_get_mbchar_width
assert_equal Reline.ambiguous_width, Reline::Unicode.get_mbchar_width('é')
end
end