mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Add a test for halfwidth kana width dakuten
https://github.com/ruby/reline/commit/0895a0d4a1
This commit is contained in:
parent
4bb65ee4fe
commit
547c27e9e7
1 changed files with 16 additions and 0 deletions
|
@ -2306,6 +2306,22 @@ class Reline::KeyActor::Emacs::Test < Reline::TestCase
|
|||
assert_line('abcd')
|
||||
end
|
||||
|
||||
def test_halfwidth_kana_width_dakuten
|
||||
input_keys('ガギゲゴ')
|
||||
assert_byte_pointer_size('ガギゲゴ')
|
||||
assert_cursor(8)
|
||||
assert_cursor_max(8)
|
||||
input_keys("\C-b\C-b", false)
|
||||
assert_byte_pointer_size('ガギ')
|
||||
assert_cursor(4)
|
||||
assert_cursor_max(8)
|
||||
input_keys('グ', false)
|
||||
assert_byte_pointer_size('ガギグ')
|
||||
assert_cursor(6)
|
||||
assert_cursor_max(10)
|
||||
assert_line('ガギグゲゴ')
|
||||
end
|
||||
|
||||
def test_input_unknown_char
|
||||
input_keys('') # U+0378 (unassigned)
|
||||
assert_line('')
|
||||
|
|
Loading…
Reference in a new issue