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:
parent
e47e5db889
commit
21f26018d2
1 changed files with 12 additions and 0 deletions
12
test/reline/test_unicode.rb
Normal file
12
test/reline/test_unicode.rb
Normal 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
|
Loading…
Reference in a new issue